LoginSignup
2
0

More than 3 years have passed since last update.

git で issueベースのタスク管理をしている時、ブランチを切るのを簡略化(fish)

Last updated at Posted at 2019-08-10

git で issueベースのタスク管理をしている時、ブランチを切るのを簡略化(fish)

develop ブランチに戻ってpullすることが非常に多いので、
git checkout develop && git pull と打つのが最近面倒です。
git push した後に違うissue(タスク)に移ろうとすると git checkout develop && git pull && git checkout -b issue/#30 とか打たなくてはならず面倒です。
aliasを登録しました

alias develop='git checkout develop && git pull'
function issue
git checkout develop
git pull
git checkout -b issue/#$argv[1]
git commit -m "fix #$argv[1]" --allow-empty
git push --set-upstream origin issue/#$argv[1]
end

永続化させるために

funcsave develop
funcsave issue

参考文献

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0