1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/git-create-branch.md
Antti Savolainen ece95f8088 batch1
2025-04-28 21:21:03 +03:00

17 lines
432 B
Markdown

# git create-branch
> Create a Git branch in a repository.
> Part of `git-extras`.
> More information: <https://manned.org/man/git-create-branch>.
- Create a local branch:
`git create-branch {{branch_name}}`
- Create a branch locally and on origin:
`git create-branch {{[-r|--remote]}} {{branch_name}}`
- Create a branch locally and on upstream (through forks):
`git create-branch {{[-r|--remote]}} upstream {{branch_name}}`