1
0
Fork 0
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:
Romain Prieto 2014-05-13 09:14:08 +10:00
commit a740586a5c

View file

@ -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}}`