What do you want to save?
Add Code snippet
New code examples
-
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 -
Shell/Bash 2021-08-26 10:49:03
git remove from from repo and stop tracking
Update your . gitignore file – for instance, add a folder you don't want to track to . gitignore . git rm -r --cached . – Remove all tracked files, including wanted and unwanted. Your code will be safe as long as you have saved locally. git ad... Add solution