mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 05:49:01 +00:00
Update cheatsheets
This commit is contained in:
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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 -u {{remote_name}} {{local_branch}}`
|
||||
`git push {{[-u|--set-upstream]}} {{remote_name}} {{local_branch}}`
|
||||
|
||||
- Send changes from a specific local branch to a specific remote branch:
|
||||
|
||||
@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Delete a branch in a remote repository:
|
||||
|
||||
`git push {{remote_name}} --delete {{remote_branch}}`
|
||||
`git push {{remote_name}} {{[-d|--delete]}} {{remote_branch}}`
|
||||
|
||||
- Remove remote branches that don't have a local counterpart:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user