https://stackoverflow.com/questions/30446281/git-remove-a-file-that-no-longer-exists-on-the-system
Note the git amend command will open an editor and the user needs to manually remove the file form the commit list.
Note the git amend command will open an editor and the user needs to manually remove the file form the commit list.
You need to remove it from the index before the commit:
Since you have it already removed from the file system, the folder should have disappeared now.If you have added the folder in the most recent commit then you can simply issue:
If you have added the folder in penultimate commit, things get a little bit more difficult. I suggest to create a backup of the local repo first. Follow these steps:
In the editor replace pick by edit in the line with the second last commit and save the file. You can now change that commit. Issue:
Now you should be done and the folder is removed from that commmit. You can push using
|
No comments:
Post a Comment