Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

whats a git command to git add -A and git commit --amend in one line?

Tags:

git

whats a git command to git add -A and git commit --amend in one line? Also I don't want to specify message or use multiple lines when amending.

like image 919
user2167582 Avatar asked Dec 16 '25 13:12

user2167582


1 Answers

To keep the same message you used on the revision you want to amend, use --no-edit. In one line, you can just separate with ;

git add -A; git commit --amend --no-edit
like image 179
eftshift0 Avatar answered Dec 19 '25 06:12

eftshift0



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!