2

I cloned my repo and made some changes. I tried to push it to github:

git add *
git commit -m "changes"
git push origin master

but it hasn't found my changes. What can I do?

ubuseral
  • 427
  • 1
  • 3
  • 14
  • What do you mean you can't find your changes? You can't find your commit? Locally or remotely? Have you tried `git status` or `git log` ? – BLaZuRE Feb 26 '13 at 07:41
  • You can refer this : http://media.pragprog.com/titles/tsgit/chap-005-extract.html – J.K.A. Feb 26 '13 at 07:43

1 Answers1

0

Note that:

  • git add . is the usual form to add everything in the current directory and subdirectories.
    (depending on your shell, '*' might not work as expected. A dot '.' will)
  • git add -u . would allow you to record the deletion of files.
  • git add -A . is a shortcut to do both.
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • i tried. I made many changes to my sourcecode, but when i execute git push origin master, git said everythin up-to-date – ubuseral Feb 27 '13 at 22:55