til

This is the repository with things I learned during my day to day work in software engineering

View on GitHub

Remove change from last git commit

Sometimes when one added a change to a commit which they did by accident it is tedious to remove the change again from the commit. Infact there is a easy way to remove a file from a commit and put it again into the staged area. then you can change the file and add it to the commit.

git checkout commit-id <file>