Reputation: 701
I was using the GitHub for Mac application, and as of recently, it's been throwing this error back at me:
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory
modified: bin/plugin.yml
modified: src/plugin.yml
Untracked files:
(use "git add <file>..." to include in what will be committed)
.gitignore
no changes added to commit (use "git add" and/or "git commit -a")
(1)
I have no idea what is doing this, because previously, the program was committing and syncing fine, but now I have to go to the command line and type "git add .
" and "git push
" to make it work, so the GitHub app has become completely useless for me.
I would like to keep the app for convenience, but at the moment, it's not looking good.
Upvotes: 1
Views: 1508
Reputation: 1327254
The correct sequence would be:
git add .
git commit -m "commit .gitignore"
git push
(The commit
step is important if you want to push anything)
Then try a fresh clone and see if GitHub for Mac still complains with that new local repo.
The OP jflory7 mentions in the comments:
It appears clearing the cache was the best way to fix the issue for me.
Upvotes: 2