Git: Remove file accidentally added to the repository.


/ Published in: Bash
Save to your folder(s)

Note that you don't actually need a temporary branch, you can do this with a 'detached HEAD', but you need to take a note of the commit id generated by the git commit --amend step to supply to the git rebase command rather than using the temporary branch name.

URL: http://stackoverflow.com/questions/307828/git-remove-file-accidentally-added-to-the-repository

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.