mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 16:35:28 +02:00
Merge pull request #178 from Dahie/patch-1
adds two more use cases for git-push
This commit is contained in:
commit
a740586a5c
1 changed files with 10 additions and 2 deletions
|
@ -2,10 +2,18 @@
|
|||
|
||||
> Push commits to a remote repository
|
||||
|
||||
- Publish local changes on a remote location
|
||||
- Publish local changes on a remote branch
|
||||
|
||||
`git push {{REMOTE-NAME}} {{LOCAL-BRANCH}}`
|
||||
|
||||
- Publish local changes on a remote branch of different name
|
||||
|
||||
`git push {{REMOTE-NAME}} {{LOCAL-BRANCH}}:{{REMOTE-BRANCH}}`
|
||||
|
||||
- Remove remote branch
|
||||
|
||||
`git push {{REMOTE-NAME}} :{{REMOTE-BRANCH}}`
|
||||
|
||||
- Remove remote branches which don't exist locally
|
||||
|
||||
`git push --prune {{REMOTE-NAME}}`
|
||||
`git push --prune {{REMOTE-NAME}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue