How to push to github from cloud9?

JohnIdol picture JohnIdol · Sep 9, 2011 · Viewed 13.7k times · Source

I am trying to push some changes from cloud9 to a github repository but I am hitting a roadblock.

I can clone OK with ssh, and everything seems to be OK, I make my changes, save the changes in cloud9 (when I go back the changes are still there), then I do git commit and get:

no changes added to commit (use "git add" and/or "git commit -a")

but I just need to commit changes to an existing file not to add. So obviously when I try to git push origin master there's nothing to push.

I tried with multiple github repos and I get the same result.

What am I missing?

Any help appreciated!

P.S. Oh, btw I suck at git

Answer

Sarfraz picture Sarfraz · Sep 9, 2011

The message shows that you are not adding changed/tracked files to commit.

Try with -am switch to ADD and Commit in one operation:

git commit -am "your message goes here"
git push