Editing Git help
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
== | == Merging Branches == | ||
http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging | http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging | ||
=== Merging Dev -> Master === | |||
* Will checkout the 'master' branch and merge from the 'dev' branch. Any applicable changes within 'dev' will be in 'master' once this command has completed. | * Will checkout the 'master' branch and merge from the 'dev' branch. Any applicable changes within 'dev' will be in 'master' once this command has completed. | ||
Line 80: | Line 13: | ||
=== Merging Master -> Dev === | |||
* Will checkout the 'master' branch and merge from the 'dev' branch. Any applicable changes within 'dev' will be in 'master' once this command has completed. | * Will checkout the 'master' branch and merge from the 'dev' branch. Any applicable changes within 'dev' will be in 'master' once this command has completed. | ||
Line 87: | Line 20: | ||
git merge master | git merge master | ||
</source> | </source> | ||
== Syncing a Forked Repo == | == Syncing a Forked Repo == | ||
* https://help.github.com/articles/syncing-a-fork | * https://help.github.com/articles/syncing-a-fork | ||
===The Setup=== | ===The Setup=== | ||
Line 154: | Line 52: | ||
There are two steps required to sync your repository with the upstream: first you must fetch from the remote, then you must merge the desired branch into your local branch. | There are two steps required to sync your repository with the upstream: first you must fetch from the remote, then you must merge the desired branch into your local branch. | ||
====Fetching==== | ====Fetching==== | ||
Line 222: | Line 110: | ||
# 1 file changed, 3 insertions(+), 2 deletions(-) | # 1 file changed, 3 insertions(+), 2 deletions(-) | ||
</source> | </source> | ||
Line 241: | Line 122: | ||
git pull | git pull | ||
git push | git push | ||
== Tags == | |||
=== Delete === | === Delete === | ||
<source> | <source> |