mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
git-push: add command (#6328)
This commit is contained in:
parent
6894f0a325
commit
3f45cf2683
1 changed files with 8 additions and 4 deletions
|
@ -3,17 +3,21 @@
|
|||
> Push commits to a remote repository.
|
||||
> More information: <https://git-scm.com/docs/git-push>.
|
||||
|
||||
- Send local changes in the current branch to its remote counterpart:
|
||||
- Send local changes in the current branch to its default remote counterpart:
|
||||
|
||||
`git push`
|
||||
|
||||
- Send local changes in a given branch to its remote counterpart:
|
||||
- Send changes from a specific local branch to its remote counterpart:
|
||||
|
||||
`git push {{remote_name}} {{local_branch}}`
|
||||
|
||||
- Publish the current branch to a remote repository, setting the remote branch name:
|
||||
- Send changes from a specific local branch to its remote counterpart, and set the remote one as the default push/pull target of the local one:
|
||||
|
||||
`git push {{remote_name}} -u {{remote_branch}}`
|
||||
`git push -u {{remote_name}} {{local_branch}}`
|
||||
|
||||
- Send changes from a specific local branch to a specific remote branch:
|
||||
|
||||
`git push {{remote_name}} {{local_branch}}:{{remote_branch}}`
|
||||
|
||||
- Send changes on all local branches to their counterparts in a given remote repository:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue