1GIT-CLEAR-SOFT(1) Git Extras GIT-CLEAR-SOFT(1)
2
3
4
6 git-clear-soft - Soft clean up a repository
7
9 git-clear-soft
10
12 Clears the repository to a state that it looks as if it was freshly
13 cloned with the current HEAD, however, preserving all changes that are
14 located in files and directories listed in .gitignore. It is a
15 git-reset --hard together with deletion of all untracked files that
16 reside inside the working directory, excluding those in .gitignore.
17
19 Clears the repo.
20
21
22
23 $ git clear-soft
24
25
26
28 Modified version of script written by Daniel ´grindhold´ Brendle
29 <grindhold@gmx.net> by Matiss Treinis <mrtreinis@gmail.com>
30
32 <https://github.com/tj/git-extras/issues>
33
35 <https://github.com/tj/git-extras>
36
37
38
39 October 2017 GIT-CLEAR-SOFT(1)