Sunday 15 January 2012

Remove a file from git repository, but stash it -


I have a committed file in my GIT repo which I would like to remove from the index However, by putting them in hiding immediately, I want to be able to bring, so later I am able to walk, eg git stash apply stash @ {0} Is there any easy way to do this?

use

  git rm --cached file_you_want_to_remove   

If you want to remove each file, then commit it. This will remove them from the head of your branch - but since you have specified - cached - they will leave them in your work tree (i.e. they will still be visible on your local file system but repo No one will see them when pulling their command.)

Next, use

  git         



No comments:

Post a Comment