Git push gets "All Updated" after committing

This is the second time I click on my code and it says that everything is updated. The repo on GitHub does not reflect any changes.

The first time I set up the git repository on github and followed the setup tutorial:

http://help.github.com/create-a-repo/

But this time I changed these files and tried

 git commit -m "msg";
 git add file;
 git push origin master; 

Changes did not affect the deleted page. Does anyone know how I can push changes to github?

+3
source share
4 answers

First you add the file, then commit and then click.

Do this instead:

git add file;
git commit -m "msg";
git push origin master; 
+16
source

, . git status , . , - :

# On branch master
#
# Initial commit
#
# Changes to be committed:
#   (use "git rm --cached <file>..." to unstage)
#
#   new file:   file
#

, , . , , ", ".

+4

, .

+2

git , , . , ( mtime) , .

(, , , )

, , , , .

(Oh, and - obviously - when you “add”, you need to “commit” before clicking)

0
source

All Articles