Answers for "add to current commit"

9

append to a commit

git add the_left_out_file
git commit --amend --no-edit
Posted by: Guest on May-15-2020
1

git add missed to last commit

# edited file-that-i-remember.txt
git add file-that-i-remember.txt
git commit

# realize you forgot a file
git add file-that-i-forgot.txt
git commit --amend --no-edit
Posted by: Guest on July-21-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language