Project

General

Profile

Actions

Common git operations » History » Revision 3

« Previous | Revision 3/18 (diff) | Next »
cryptogopher, 2019-05-10 00:00


Common git operations

Prerequisites:

cd ~/plugins/issue_recurring

Issue resolution in separate branch

Create separate branch for issue

  1. Checkout and update master:
    $ git checkout master
    $ git pull
    
  2. 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

  1. Push uncommited changes on issue branch.
  2. Checkout and update master:
    $ git checkout master
    $ git pull
    
  3. Merge and push issueN branch:
    $ git merge issueN
    $ git push
    
  4. Delete merged branch from local and remote:
    $ git branch -d issueN
    $ git push origin :issueN
    
  5. Verify:
    $ git branch -a
    

Updated by cryptogopher over 5 years ago · 3 revisions

Also available in: PDF HTML TXT