git switch <branch> |
Switch to a local branch or get a remote branch and switch to it |
git switch -c <branch> |
Create new branch and switch to it |
git branch |
List available branches |
git branch -a |
List all available branches (also from remote) |
git branch <branch> |
Create a new branch |
git branch -d <branch> |
Delete the branch <branch> |
git fetch [<remote>] [<branch>] |
Fetch changes from the remote |
git push [<remote>] [<branch>] |
Push local changes to the remote server |
git push --set-upstream <remote> <branch> |
Push local branch to the remote server |
git merge <branch> |
Merge <branch> into the active branch |
git merge --no--ff <branch> |
Merge without fast-forward |