App Academy

Git Assesment help .gitignore

Hi everyone,

I did not pass my GIT assessment due to these errors.

Screen Shot 2021-03-06 at 2.49.08 PM|224x500

Everything works and is exactly as it should be according to instructions.

I believed I figured out the issue had to do that I forgot to put the (dot). I wrote this β†’ DS_Store but should be β†’ .DS_Store.

So if I correctly create the .gitignore file, save it, initialize the git repository in the git-repo-management directory and commit all those files to the master branch at the beginning, does that mean that it will be added to all other branches I create after since it was done in the beginning?

I’m just wondering if every time I commit to a new branch, I have to be on the lookout for this file to be committed or just in the beginning.

Thanks to anyone who could help! :slight_smile:

Hi Simon,
You’re exactly right - those errors were just caused by missing the dot across all four branches.

It looks like everything else was correct based on diff. My recommendation is just to manually add the dot in each branch. Make sure you save, stage, and commit each branch after you make the change. Then double-check each branch to make sure the change was committed, and you should be all set to re-submit.

Let us know if you have any other questions!

1 Like