Changes between Version 10 and Version 11 of GitCookbook
- Timestamp:
- 09/09/09 06:55:16 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GitCookbook
v10 v11 1 = preface = 2 1 3 Before you do anything, you should probably install the bash completion script for git, it makes the learning curve a lot less steep: 2 4 http://repo.or.cz/w/git.git?a=blob;f=contrib/completion/git-completion.bash 5 6 It will make your prompt be something really cool like: 7 8 {{{ ~/git-svn/parrot parrotobj $ }}} 9 10 where '''parrotobj''' is the name of the branch. There are many other useful setting if you read the comments in git-completion.bash . 3 11 4 12 … … 139 147 {{{ git checkout -b this_branch_is_awesome }}} 140 148 149 = how do I get that thing over there on that onto this branch here? = 150 151 Find the sha1, a single commit that you would like to "borrow" from another branch, or perhaps something you found in the '''reflog''', then type: 152 153 {{{ git cherry-pick sha1 }}} 154 155 If you have multiple commits to pull over, then you must do multiple cherry-pick's. 141 156 142 157 143 158 159 160 161 162