Yesterday I was trying to get .DS_Store files to be globally ignored by git.
I must have entered some command incorrectly because now every time I launch terminal or use the cd command, I get six lines of -bash: .DS_Store: command not found, like so:
[11:28:30] [~]$ cd Projects/
-bash: .DS_Store: command not found
-bash: .DS_Store: command not found
-bash: .DS_Store: command not found
-bash: .DS_Store: command not found
-bash: .DS_Store: command not found
-bash: .DS_Store: command not found
[11:28:33] [Projects]$
Obviously, DS_Store is not supposed to be a command.
How do I fix this?
Thanks.
EDIT:
I don't remember exactly every command I ran. I was googling, and trying stuff.
I know I did execute the commands found here.
git config --global core.excludesfile ~/.gitignore
echo .DS_Store >> ~/.gitignore
EDIT 2: I figured it out. Answer provided below.
.DS_Storefiles? – fideli Jan 5 at 16:39~/.bashrcand~/Project/.git/configfile? Did you create a.gitignorefile? Show them all please. – hesse Jan 5 at 16:42historyshow? Can you tell us what you did using the history output? Did you ever change~/.bashrcor~/.bash_profile? – slhck Jan 5 at 16:42