On 05/23/11 15:38, Shawn Lindsey wrote:
Hi all,

New to git. Often in my workflow I will do a>>  git add .   ... then I
will do a>>  git commit -m "Change" .... then I will do a>>  push

Sometimes I get this message ... (below)

Cannot push because you have pending changes. Do a git commit or add
changes to .gitignore.

I fix it by doing a>>  git commit -am "Change"

Why do I need the "a" sometimes, and sometimes I don't ... basically I
am just trying to push changes that I make locally... sometimes I
change files, delete them, add them.. who knows... but sometimes the
above situation occurs.



If you want to add all changes, try "git add -A" instead and see if that works for you.

__________ Information from ESET Smart Security, version of virus signature 
database 6146 (20110523) __________

The message was checked by ESET Smart Security.


You received this message because you are subscribed to the Google Groups "Git for 
human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to