Git add and commit in one command

后端 未结 27 2430
旧巷少年郎
旧巷少年郎 2020-11-28 00:28

Is there any way I can do

git add -A
git commit -m \"commit message\"

in one command?

I seem to be doing those two commands a lot,

27条回答
  •  情书的邮戳
    2020-11-28 00:50

    This Result - Try this: Simple script one command for git add, git commit and git push

    Open your CMD on Windows and paste this answer

    git commit -m "your message" . && git push origin master

    This example my picture screenshot : https://i.stack.imgur.com/2IZDe.jpg

提交回复
热议问题