git checkout master
git pull
git checkout -b <branch>
In this example we are merging feature/new-feature branch with the master branch.
* feature/new-feature
git merge <branch> // master
git log --pretty=oneline
git branch -d branchname
git branch --delete branchname
git commit --amend -m "<new commit message>"
git restore --staged <filename>
git restore <filename>
git rm <filename>
git checkout .
git revert <commit hash>
git reset --hard <commit hash>
git show <009b7c0>:<filename>
git checkout <009b7c0> -- <filename>