mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-09 09:15:47 +02:00
git-branch: add example to show current branch (#3677)
This commit is contained in:
parent
b0c5a551ad
commit
9b7cbf8587
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@
|
||||||
|
|
||||||
`git branch -a`
|
`git branch -a`
|
||||||
|
|
||||||
|
- Show the name of the current branch:
|
||||||
|
|
||||||
|
`git branch --show-current`
|
||||||
|
|
||||||
- Create new branch based on the current commit:
|
- Create new branch based on the current commit:
|
||||||
|
|
||||||
`git branch {{branch_name}}`
|
`git branch {{branch_name}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue