Branching
Branch
git branchThe git branch command allows you to create, list, rename and delete branches.
Create Branch
git branch branchName
Ex: git branch DemoList Branch
git branch or git branch --listDelete Branch
git branch -d branchName
Ex: git branch -d DemoRename Branch
git branch -m branchName
Ex: git branch -m Demo1Delete Remote Branch
git push origin --delete branchName
Ex: git push origin --delete DemoCheckout
git checkoutYou can switch between two branches with the git checkout command.
Create and switch Branch
Discord changes
Merge
You can merge two branches with the help of git merge command.
Merge into other branch
Cherry-pick
Cherry-picking in Git stands for applying some commit from one branch into another branch.
Rebase
Rebasing is a process to re apply commits on top of another base commit.
Continue to apply changes
Skip changes and apply
Stash
Switch branches without committing the current branch.
Save Stash
List Stash
Apply Stash
Show Changes
Last updated