git pull
git checkout -b branch/name
git pull -u origin branch/name
Then create a pull request.Once your pull request is reviewed and merged to the master do the following.
git branch -d branch/name
git branch -D branch/name
git branch -r
git remote prune origin
git checkout HEAD~ file-name
// To revert the file from previous commit, Add the file from the HEAD~ commit to the current commit, ~ jump once, ~~ jump twice.
git commit -n
// To avoid git pre commit hooks.