Shell - GIT - Work with branches

23/02/2021 One-minute read

Nowadays, most IDE has menu options and shortcuts to run Git command but sometimes you may prefer to do it all by yourself. Usually, it is to resolve detached branches and conflicts.

These are the command most useful for me that came to the rescue.

Check my remote version.

git remote -v

Check status.

git status

Set remote branch for all next pushes and Push.

git push --set-upstream origin feature/branch_name

Posts in this Series