Guest User

Untitled

a guest
Jan 17th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. You have made same changes in a file (or multiple files) and you want to discard the changes without commiting.
  2. You either want to dicard the changes in a single file or all changes in all the files.
  3.  
  4. If your intention is to discard changes in a single file then do the following;
  5. git checkout -- <file-name>
  6.  
  7. If your intention is to discard changes in all files then do the following;
  8. git checkout -- .
  9.  
  10. You have made
Add Comment
Please, Sign In to add comment