Critical Developers

Programmers Knowledge Base

Git - How to pull latest code and avoid conflicts

To avoid conflict and get the latest code from git repository and then start your changes use below 2 commands in order as below:-

 git reset --hard HEAD 
git pull
Loading