How to remove a file after adding in git, - How to undo a file being added in in stage.
I had some changes in my local and wanted to push to the git repo. But unfortunately I added a file that was not required . How to remove a file after adding to git ( Before pushing the changes)
git reset < file name >
Reference:
http://data.agaric.com/undo-git-add-remove-files-staged-git-commit
I had some changes in my local and wanted to push to the git repo. But unfortunately I added a file that was not required . How to remove a file after adding to git ( Before pushing the changes)
git reset < file name >
Reference:
http://data.agaric.com/undo-git-add-remove-files-staged-git-commit
No comments:
Post a Comment