Advertisement
Guest User

cherry pick guide

a guest
Aug 3rd, 2013
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. git cherry-picking
  2.  
  3. git branch = shows available branches sometime it shows no branch
  4.  
  5. if so
  6.  
  7. git branch (branch you want same as github one or branch name you want to make )
  8.  
  9. now you need to get on that branch
  10.  
  11. git checkout (name of branch you just created it switche between branches)
  12.  
  13.  
  14. now we need their source so it knows where to pick from
  15.  
  16. git fetch (same url you clone from )
  17.  
  18. then we need the commit we want
  19.  
  20.  
  21. git cherry-pick (SHA) = example sha 67418cf69b21071bc0e45c5299fe61f48c93bbd2
  22.  
  23. git cherry-pick 67418cf69b21071bc0e45c5299fe61f48c93bbd2
  24.  
  25.  
  26. git log = shows commits previous and most recent
  27.  
  28. q is to quit on git log
  29.  
  30. sadly we arent ready to discuss the hard part
  31. i rarely solve errors unless i really want it lol
  32.  
  33.  
  34. so
  35. git cherry-pick --abort = bye bye commit to0 much work lets find something else
  36.  
  37.  
  38.  
  39. lets commit because it wouldnt tell me why it failed
  40.  
  41. git add -A = add all files we messed with
  42.  
  43. git commit -a - well lol commit all files
  44.  
  45. this thing you are seeing is called vim
  46.  
  47. i = insert used for editing word
  48. :q = quit
  49. :w = write commit
  50.  
  51. esc= well so you can use other commands its like a middle ground between them that really isnt important since im not commiting an errorm i just needed to see the files it messed with
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement