Guest User

Untitled

a guest
Nov 23rd, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. # git checkout 2.4.33 -b my_branch
  2.  
  3. git pull <remote> <branch>
  4.  
  5. git branch --set-upstream new origin/<branch>
  6.  
  7. git branch --set-upstream-to=origin/master master
  8.  
  9. git branch --set-upstream master origin/master
  10.  
  11. $ git push -u origin master
  12.  
  13. -u, --set-upstream`
  14.  
  15. For every branch that is up to date or successfully pushed, add
  16. upstream (tracking) reference, used by argument-less git-pull(1) and
  17. other commands. For more information, see branch.<name>.merge in
  18. git-config(1).
  19.  
  20. git pull origin master
  21. git push -u origin master
  22.  
  23. $ git checkout master
  24.  
  25. $ git pull origin/master
  26.  
  27. $ git branch -u origin/master
  28. Branch master set up to track remote branch master from origin.
  29.  
  30. -u <upstream>
  31. Set up <branchname>'s tracking information so <upstream> is considered
  32. <branchname>'s upstream branch. If no <branchname> is specified,
  33. then it defaults to the current branch.
  34.  
  35. git branch --track
  36.  
  37. git pull
  38.  
  39. git checkout branch_name
  40. git branch --set-upstream-to=origin/remote_branch_name local_branch_name
  41.  
  42. // this set upstream of local branch develop to remote branch origin/develop,
  43. git branch --set-upstream-to=origin/develop develop
  44.  
  45. git checkout master
  46.  
  47. git pull origin master
  48.  
  49. git branch --set-upstream master origin/master
  50.  
  51. git branch --track master origin/master
  52.  
  53. -u <upstream>
  54. Set up <branchname>'s tracking information so <upstream> is considered
  55. <branchname>'s upstream branch. If no <branchname> is specified,
  56. then it defaults to the current branch.
  57.  
  58. [alias]
  59. set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
  60.  
  61. git fetch origin master
  62.  
  63. git branch --set-upstream-to=origin/master master
  64.  
  65. git pull origin master
  66.  
  67. git branch --set-upstream-to=origin/master master
  68. git pull
  69.  
  70. git branch -u origin/master
Add Comment
Please, Sign In to add comment