Editing Git help

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 9: Line 9:
source ~/.git-completion
source ~/.git-completion
</source>
</source>
== cherry-pick ==
* http://wiki.koha-community.org/wiki/Using_Git_Cherry_Pick
Example:
* Source Branch: dev  ( what we want to cherry pick from )
* Target Branch: test
<source>
# checkout your target branch ( the branch you want to merge into )
git checkout test
# create a new branch -- easier to redo mistakes ( delete branch and start over )
git branch test-cp
# find commits you want to cherry-pick ( in this case we are cherry picking from "dev")
git log --pretty=oneline dev
# pick commits from bottom to top ( repeat for all commits)
git cherry-pick "hash"
# check results
git diff test..test-cp
# if you are happy with results
git checkout test
git merge test-cp
git push
</source>
== Branches ==
== Branches ==


Line 120: Line 84:
git push
git push
</source>
</source>


== Syncing a Forked Repo ==
== Syncing a Forked Repo ==
Line 227: Line 188:
git checkout -b upstream upstream/master
git checkout -b upstream upstream/master
</source>
</source>


== Rebase ==
== Rebase ==
Line 242: Line 200:
git push
git push
</source>
</source>


== Tags (releases) ==
== Tags (releases) ==
Please note that all contributions to RARForge may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see RARForge:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)