Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.5 KB

Git-merge.md

File metadata and controls

57 lines (43 loc) · 1.5 KB

Requirement


Index


Merge develop into master

Increment the tag number each time.

$ git checkout master
$ git merge --no-ff develop
$ git tag -a v4.0.12
$ git push origin master
$ git push --tags origin master

Merge a PR via command line

  • The PR must be based on SickChill:develop
  • The branch we want to commit is fernandog:remote_tvcache_traceback
$ git checkout -b fernandog-remote_tvcache_traceback develop
$ git pull https://github.com/fernandog/SickChill.git remote_tvcache_traceback
$ git checkout develop
$ git merge --no-ff fernandog-remote_tvcache_traceback
$ git push origin develop
$ git branch -d fernandog-remote_tvcache_traceback

Merge a hotfix(master and develop)

  • The PR must be based on SickChill:master
  • The branch we want to commit is fernandog:remote_tvcache_traceback
$ git checkout -b fernandog-remote_tvcache_traceback master
$ git pull https://github.com/fernandog/SickChill.git remote_tvcache_traceback
$ git checkout master
$ git merge --no-ff fernandog-remote_tvcache_traceback
$ git push origin master
$ git checkout develop
$ git merge --no-ff fernandog-remote_tvcache_traceback
$ git push origin develop
$ git branch -d fernandog-remote_tvcache_traceback