39

git commit -a -m 'added new files'
git status

-.-

git add .
git commit -a -m 'added new files'

Comments
  • 9
    git commit -am '....'
  • 3
    git add .
    git commit -m "el que lo lea le huele"
  • 1
    git add .
    git commit -m "woops fixing the last thing and overwriting the last commits message..." --amend
  • 0
    And thats the story why I use desktop/atom git integration
  • 0
    Why not 'git commit -am"..." .'?
  • 2
    @x4fyr That's redundant, of course -am works too

    But new files, that aren't added are still not taken into consideration, so he has to git add them first.

    You could've done -amend though, @endofreach
  • 0
    Yes thats true but somehow i prefer to write out voth flags. And i like to write the add due to control of adding only specific files if needed or to add all with .
    A little bit more to write but thats kinda routine for me
Add Comment