DEV Community

Discussion on: 11 Git Commands I Use Every Day

Collapse
 
mustafa7amdi profile image
mustafa7amdi

Don't forget "git pull" before "git push" 😉

Collapse
 
husseinmsaqr profile image
Hussein Mohamed • Edited

Hi Mostafa,
I would tell you, you don't need to do that.
By git push origin/< branch-name > -f
You can push without need use pull before, I hope that helpful for you 👌

Thread Thread
 
mustafa7amdi profile image
mustafa7amdi

Ya, but be careful this will remove others pushed code