When you want to discard any modified files/folders, right click on them under Solution Explorer. You can increase the number to remove even more commits.Īlso, how do I undo all changes in Visual Studio? Undoing your local changes. To remove the last commit from git, you can simply run git reset -hard HEAD^ If you are removing multiple commits from the top, you can run git reset -hard HEAD~2 to remove the last two commits. Similarly one may ask, how do I delete an outgoing commit?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |