Last active
May 15, 2023 03:34
-
-
Save gschema/2c60b5166fa36df586dd to your computer and use it in GitHub Desktop.
Revisions
-
gschema revised this gist
Nov 19, 2019 . 1 changed file with 24 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,11 +16,33 @@ git update-index --no-assume-unchanged <file> git ls-files -v | grep "^[[:lower:]]" ``` ## aliases __temp ignore file changes__ ``` git config --global alias.hide '!git update-index --assume-unchanged' # use it: git hide file/path.ext ``` __unhide file(s)__ ``` git config --global alias.unhide '!git update-index --no-assume-unchanged' # use it: git unhide file/path.ext ``` __unhide all__ ``` git config --global alias.unhideAll '!git update-index --really-refresh' # use it: git unhideAll ``` __check ignored files__ ``` git config --global alias.hidden '!git ls-files -v | grep "^[[:lower:]]"' # use it: git hidden ``` -
gschema revised this gist
Nov 18, 2019 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,9 +16,11 @@ git update-index --no-assume-unchanged <file> git ls-files -v | grep "^[[:lower:]]" ``` ## alias check ignored files ``` git config --global alias.hidden '!git ls-files -v | grep "^[[:lower:]]"' # use it: git hidden ``` -
gschema revised this gist
Nov 18, 2019 . 1 changed file with 13 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,4 +8,17 @@ git update-index --assume-unchanged <file> ## unignore: ``` git update-index --no-assume-unchanged <file> ``` ## check ignored files ``` git ls-files -v | grep "^[[:lower:]]" ``` __alias it:__ ``` git config --global alias.hidden '!git ls-files -v | grep "^[[:lower:]]"' # use it: git hidden ``` -
gschema revised this gist
Jul 22, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ git update-index --assume-unchanged <file> ``` ## unignore: ``` git update-index --no-assume-unchanged <file> ``` -
gschema revised this gist
Jul 22, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ git update-index --assume-unchanged <file> ``` ## un-ignore: ``` git update-index --no-assume-unchanged <file> ``` -
gschema renamed this gist
Jul 22, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
gschema revised this gist
Jul 22, 2015 . 2 changed files with 11 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ # How to temporarily ignore/unignore file changes in Git? ## ignore: ``` git update-index --assume-unchanged <file> ``` ## unignore ``` git update-index --no-assume-unchanged <file> ``` -
gschema created this gist
Jul 22, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ How to ignore/unignore file changes in Git? git update-index --assume-unchanged <file> git update-index --no-assume-unchanged <file>