mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-11-22 04:45:16 +00:00
Merge pull request #1 from Ancy1987/Ancy1987-patch-1
Git clean commands added
This commit is contained in:
commit
2c0805a4a6
@ -46,6 +46,11 @@ git stash branch my-branch stash@{1} # creates a branch from your stash
|
|||||||
git stash drop stash@{1} # deletes the {1} stash
|
git stash drop stash@{1} # deletes the {1} stash
|
||||||
git stash clear # clears all the stash
|
git stash clear # clears all the stash
|
||||||
|
|
||||||
|
git clean -f # clean untracked files permanently
|
||||||
|
git clean -f -d/git clean -fd # To remove directories permanently
|
||||||
|
git clean -f -X/git clean -fX # To remove ignored files permanently
|
||||||
|
git clean -f -x/git clean -fx # To remove ignored and non-ignored files permanently
|
||||||
|
|
||||||
.gitignore
|
.gitignore
|
||||||
# is a file including names of stuff that you don"t want to be staged or tracked.
|
# is a file including names of stuff that you don"t want to be staged or tracked.
|
||||||
# You usually keep your local files like database, media, and etc here.
|
# You usually keep your local files like database, media, and etc here.
|
||||||
|
Loading…
Reference in New Issue
Block a user