- Show changes
git status
- Commit changes with message
git commit -m "Commit message"
- Show actual branch
git branch
- Add files to stash
git add --A
- Discard changes
git checkout -- .
- Switched to a branch
git checkout branch_name
- Create a new branch
git cheackout -b new_branch_name
- Delete a branch
git branch -d branch_name
- Commit all your changes.
- Switch to branch target running
git checkout branch_target
- Merge the changes
git merge branch_source
- Update remote
git push origin branch_target
- Add remote
git remote add origin url_remote
- Push changes to remote repo
git push origin branch_name
- Update (Pull) the local branch
git pull branch_name
- Delete a branch from remote
git push remote_name --delete branch_name