mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-16 11:45:04 +02:00
Add git push -u command to git tutorial.
This commit is contained in:
@@ -327,6 +327,11 @@ Push and merge changes from a branch to a remote & branch.
|
|||||||
# git push <remote> <branch>
|
# git push <remote> <branch>
|
||||||
# git push => implicitly defaults to => git push origin master
|
# git push => implicitly defaults to => git push origin master
|
||||||
$ git push origin master
|
$ git push origin master
|
||||||
|
|
||||||
|
# To link up current local branch with a remote branch, add -u flag:
|
||||||
|
$ git push -u origin master
|
||||||
|
# Now, anytime you want to push from that same local branch, use shortcut:
|
||||||
|
$ git push
|
||||||
```
|
```
|
||||||
|
|
||||||
### rebase (caution)
|
### rebase (caution)
|
||||||
|
Reference in New Issue
Block a user