What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-28 05:41:02
ignore .idea files
Git never ignores changes to tracked files. As it appears as modified, the file is under version control (the idea/workspace.xml file usually should not be) and thus changes to it are tracked. Delete it from the index, leaving your local copy intact wi... Add solution -
Shell/Bash 2021-08-27 19:05:01
git ignore all ds_store
echo ".DS_Store" >> ~/.gitignore_global echo "._.DS_Store" >> ~/.gitignore_global echo "**/.DS_Store" >> ~/.gitignore_global echo "**/._.DS_Store" >> ~/.gitignore_global git config --global c... Add solution -
Shell/Bash 2021-08-26 21:51:01
create gitignore
#Create your global ignore file like a normal .gitignore #in your home folder. git config --global core.excludesfile /path/to/home/.gitignore #Your git now exclude any file declared in that .gitignore #It's useful for hide your IDE's folder (.idea, .vscod... Add solution -
Shell/Bash 2021-08-26 13:15:01
git remove file from repo that has been added to gitignore
Commit any files that you need to change/delete to the repo. Then: git rm -r --cached . # this will clean all files from cache. To clean a single file, exchange '.' with filename git add . # add all of the now uncached files that are not gitignored to ... Add solution