The older global gitignore included files that are only appropriate for certain projects. That caused edge-case issues where students would work on projects outside of the normal lessons but not be able to see the changes to their files.
We have since removed the potentially problematic files from the global gitignore, and very shortly in the course you will become knowledgeable about how to use your own local gitignore file in your projects as you need them!
-
Check the location of you're global gitignore/excludesfile. You can run the following command anywhere in your system (you do not need to be in a specific directory).
Run:
git config --list --global # Example Output: push.default=simple color.ui=always color.branch.current=green reverse color.branch.local=green color.branch.remote=yellow color.status.added=green color.status.changed=yellow color.status.untracked=red core.editor=nano core.excludesfile=/Users/<your_username>/.gitignore-global user.name=<Your_Name> user.email=<Your_Email>
-
Find the location of your
core.excludesfile
from the list from Step 1.Find:
push.default=simple color.ui=always color.branch.current=green reverse color.branch.local=green color.branch.remote=yellow color.status.added=green color.status.changed=yellow color.status.untracked=red core.editor=nano + core.excludesfile=/Users/<your_username>/.gitignore-global user.name=<Your_Name> user.email=<Your_Email>
-
Use your code editor to open the global gitignore file.
Run:
# Do not copy and paste this line from here, use the file location on your system subl /Users/<your_username>/.gitignore-global
-
Open the updated gitignore-global--template from Installfest.
-
In the tab that opens in , Use the following keyboard shortcuts to update the contents of your local gitignore file
CMD + A
in the tab from the link to select all of the text from the page.CMD + C
to copy the text.CMD + A
in the local gitignore file in Sublime Text to select all of the text.CMD + V
to paste the text in your local file in Sublime.CMD + S
to save your local gitignore file.
That's it! Once you save the file it goes into effect immediately.