mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-04-05 02:16:42 +00:00
git: expand switch --create
notes
Some checks failed
Deploy to Github Pages / deploy (push) Has been cancelled
Some checks failed
Deploy to Github Pages / deploy (push) Has been cancelled
This commit is contained in:
parent
4772e67e34
commit
d0276b5473
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ It's generally recommended creating annotated tags so it's possible to have all
|
|||
`git branch <branch-name>`: create new branch
|
||||
`git branch -d|--delete <branch-name>`: delete specified branch
|
||||
`git branch -m|--move <old_name> <new_name>`: rename a branch without affecting the branch's history
|
||||
`git switch -c <branch-name>`: create a branch and switches to
|
||||
`git switch -c|--create <branch-name>`: create a new branch and switch to it
|
||||
`git switch --orphan <branch-name>`: create an new un-rooted branch from scratch
|
||||
`git switch <branch-name>`: change current branch (update HEAD) and update working directory
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue