Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

remove a file from git commit

git reset --soft HEAD^ 
or
git reset --soft HEAD~1
git reset HEAD path/to/unwanted_file
git commit -c ORIG_HEAD 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #file #git #commit
ADD COMMENT
Topic
Name
1+8 =