1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-09 22:05:59 +02:00
tldr/pages/common/git-create-branch.md
Managor d2e6da7679
common*: refresh old pages part 7 (#16290)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-05-01 14:38:45 +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}}`