Git pull from a wrong branch?
If you’re working in your feature-branch:
git checkout feature-branch
and by mistake you pull from a wrong branch (usually master or develop):
git pull origin different-branch
You can fix it with this:
git reset --hard origin/feature-branch
4 Notes/ Hide
-
cristi-phillips reblogged this from edgar
-
carp89d liked this
-
edgar posted this