DEV Community

Discussion on: 11 Git Commands I Use Every Day

Collapse
 
pyguy9x profile image
pyguy9x

Hi, I'm newbie and here is my git command

git status : to view exactly what I added
git add .
git commit -m 'Add comment here' .
git status : to view the changed at the end
if everything OK, then
git push : to push all my setting to the server

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