Skip to content

Git merge

BKSteve edited this page Oct 7, 2023 · 10 revisions

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
Clone this wiki locally