User Tools

Site Tools


git_clean

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
git_clean [2018/05/24 09:39]
rpjday [Overview]
git_clean [2019/02/28 15:25]
rpjday [Overriding standard ignore rules]
Line 28: Line 28:
 </​code>​ </​code>​
  
-Note how both ignored files and new, //staged// files are not cleaned by default. Currently, there is some dissension ​as to what is meant by files "known to Git."+Note how both ignored files and new, //staged// files are not cleaned by default. Currently, there is some dissension ​regarding ​what is meant by files "known to Git."
  
 ===== Basic options ===== ===== Basic options =====
Line 89: Line 89:
     rebuild everything from scratch, but keep manually created     rebuild everything from scratch, but keep manually created
     files.     files.
 +</​code>​
 +
 +===== Getting a "​pristine"​ working tree =====
 +
 +Create a shell alias:
 +
 +<​code>​
 +alias gpristine='​git reset --hard && git clean -dfx'
 </​code>​ </​code>​
git_clean.txt ยท Last modified: 2019/02/28 15:25 by rpjday