Common git operations¶
Prerequisites:
cd ~/plugins/issue_recurring
Issue resolution in separate branch¶
Create separate branch for issue¶
- Checkout and update master:
$ git checkout master
$ git pull
- Create, checkout new branch and push it to remote (so it will be tracked and replicated on it.michalczyk.pro):
$ git checkout -b issueN
$ git push -u origin issueN
Merge issue branch into master¶
- Push uncommited changes on issue branch.
- Checkout and update master:
$ git checkout master
$ git pull
- Merge and push issueN branch:
$ git merge issueN
$ git push
- Delete merged branch from local and remote:
$ git branch -d issueN
$ git push origin :issueN
- Verify:
$ git branch -a