I’m stuck at this point where me and my teammate working on the master branch and we both pushed the code but I didn’t pull the changes and again pushed the code so here i’m now I can’t pull or push the code.. what should i do?
This might look intimidating but bare with me:
git log
git reset --soft [hash]
git stash
git fetch
git pull
git stash apply
or git stash pop
git commit ...
git push
From now own, you should remember to do all your work on a separate branch and then merge them onto master
.