revert - how to remove changes since last git commit -


This is probably a simple (but upset) question. How can you remove all changes with the lasting changes? I made a patch, and I wanted to go back to how things were on my previous commitment.

I have tried:

GIT reset - Hard Master

and

GIT Checkout Master

But Do not remove or remove my folders from files I have added / changed (they are still listed as unclaimed files.)

Untracated files are untreated, do not know the guitar or do not care about them. GIT reset - Hard will only return tracked files to the position they were most recently (or name) in the Commit.

You can clear git Be careful to remove unwanted files and directories from your work tree that you do not want to accidentally delete any hard work!

"Silver Bullet" which will restore a repository to the state again, it is most recently committed, just as it was, it was cloned ( This user will also remove "neglected" user files by the repository! ) This will be: git reset - hard end; GIT clean - FDX (If you skip the x flag, then it will only delete unmovable files which are not ignored, which can include build products, For example.)

Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -