Guest User

Untitled

a guest
Jul 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Remove untracked files from the working tree
  2.  
  3. Step 1 is to show what will be deleted by using the -n option:
  4.  
  5. git clean -n
  6.  
  7. //Clean Step - beware: this will delete files:
  8.  
  9. git clean -f
  10.  
  11. //To remove directories, run git clean -f -d or git clean -fd
  12. //To remove ignored files, run git clean -f -X or git clean -fX
  13. //To remove ignored and non-ignored files, run git clean -f -x or git clean -fx
Add Comment
Please, Sign In to add comment