How to update or pull current branch before committing in Git?
Best practice says that before you commit in git, you need to either do git pull or git fetch/merge. However, there is a way to find out wheather your branches is not in sync with remote. To check the remote repo status you are really simulating a “fetch” $ git fetch -v –dry-run To bring … Read more