-
Notifications
You must be signed in to change notification settings - Fork 0
Git Gitignore
The .gitignore file must be placed in working directory. Create and open with Terminal:
touch .gitignore && open .gitignore
https://www.gitignore.io/
https://help.github.com/articles/ignoring-files/
https://github.com/github/gitignore
git rm --cached .DS_Store
git rm -r folder-name
echo "*.pyc" >> .gitignore
where "*' represents any character or array of chars.
This will tell Git to add .gitignore_global as the global gitignore file in your global git config.
git config --global core.excludesfile ~/.gitignore_global
Use ⌃OWrite Out to save changes, hit Enterto save changes to the highlighted file path name (as long as it matches).
sudo nano ~/.gitignore_global
This will tell Git to add .gitignore_global as the global gitignore file in your global git config.
git config --global core.excludesfile ~/.gitignore_global
Open and edit the .gitignore_global in your home directory using cmd
notepad %USERPROFILE%\.gitignore_global