Difference between revisions of "Create git branch with current changes"
Jump to navigation
Jump to search
m (Brave moved page Create Git branch with current changes to Create git branch with current changes) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
== Related == | == Related == | ||
* [[Merge Request (MR)]], [[Pull Request (PR)]] | * [[Merge Request (MR)]], [[Pull Request (PR)]] | ||
+ | * <code>[[gh pr create]]</code> | ||
+ | * <code>[[git branch --all]]</code> | ||
+ | * [[Move existing, uncommitted work to a new branch in git]] | ||
== See also == | == See also == | ||
− | * {{git}} | + | * {{git branch}} |
[[Category:Git]] | [[Category:Git]] |
Latest revision as of 08:44, 20 June 2023
https://stackoverflow.com/questions/3899627/create-git-branch-with-current-changes
git checkout -b feature/newbranch
git push --set-upstream origin feature/newbranch
Related[edit]
- Merge Request (MR), Pull Request (PR)
gh pr create
git branch --all
- Move existing, uncommitted work to a new branch in git
See also[edit]
git branch
,git: upstream
,git branch --delete branch name
,[ --list | -a | -r | -M ]
Advertising: