How to undo commit in Visual Studio Code | Fast tutorial

preview_player
Показать описание
This quick beginner's git tutorial shows you how to undo a commit in VS Code without needing to use your terminal or command line. This is a shortcut to undo a commit in Visual Studio Code, but you can do the same thing from the git tab as well. You can also unstage changes, undo changes, and remove files in git tab. For more quick tutorials, check out my other fast git / VS Code tutorials! Thank you for stopping by!

Рекомендации по теме
Комментарии
Автор

The fastest tutorial in my life which save a lot of work!

snirjio
Автор

This saved me 1 minute from every "undo last commit "action I do. I always googled it.

sahin
Автор

So demo stuff with vscode, its sometimes also useful to show shortcuts used with the 'screencast' mode, instead of an overlay keyboard like you did. (just in case you didnt know about it) start typing screencast in the command palette to see what I mean

felixgraphx
Автор

THANK YOU MUCH, I ACCIDENTALLY DELETED ALL MY CODE WITH Ctrl a 88 lines Thank you

PyroManiaxax
Автор

what if we have not commited but done discard all changes?

swapnilbamble
Автор

But your commit is not pushed to server. Can you create a video when you have synced the changes? (Consider just committed and pushed it, and none of your friends have pull it yet). *I dont want to create one more commit with changes being reverted*

hhaassiill
Автор

I lost my css styles sheet or replaced it with another within Visual studio. Can you help?

proteus
Автор

Does this even work for a Merge commit?

sahej