When I started my career, I was always afraid of losing my code changes. Sometimes, I would copy the code to text files just to be sure that I won'...
For further actions, you may consider blocking this person and/or reporting abuse
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
Don't forget "git pull" before "git push" 😉
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 👌
Ya, but be careful this will remove others pushed code
These are really helpful and well explained. Thank-you!
Thanks, glad you like it!
nice bro. on Version 2.2 and later, I use
git switch to switch branch and
git switch -c to create branch instead of using checkout.
I think git checkout is very useful and it can use for multiple purposes, but we can separate the purposes
Very nice cheat sheet Domagoj, thank you for this! For a long time now, I wanted to make my own but you helped me with it :)
The one command that I would add to the list is:
git fetch --all
This is useful when someone just made a new branch onto origin but your vscode did not detect that and you don't see it when you want to change the branch (through ui).
PS. I find some git commands easier to use with ui that vscode provides :)
Very useful Thank you
Recently I changed “git checkout” to “git switch” on at branch management
So glad vscode has all these built into the interface
I never knew i could use revert this is a much cleaner way to do things. I usually do a git rest in my local and tben run push - - force
Thanks for sharing