Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git commit and add in one command

// first define a new alias for the commands:
git config --global alias.add-commit '!git add -A && git commit'

// and then use it by typing in the message:
git add-commit -m 'My commit message'

//Credit for the original post on stackoverflow.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #commit #add #command
ADD COMMENT
Topic
Name
5+3 =