Removing particular bug commit from git:
>> git log --oneline
>> git reset --hard <commitid>>> git push -fRemoving particular file like big file more than 100 mb(not uploadable on github) removing from the previous commit:
to remove the large file
git rm --cached <filename>
Then, to edit the commit
git commit --amend -C HEAD # very important
Then you can push your amended commit with
git push
Comments
Post a Comment