I have a folder which I'd like to remove in my remote repository. I'd like to delete it, but keep the folder in my computer
相关问题
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
- Upload file > 25 MB on Github
相关文章
- 请教Git如何克隆本地库?
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is there a version control system abstraction for
- ssh: Could not resolve hostname git: Name or servi
- Cannot commit changes with gitextensions
- git: retry if http request failed
Will stage the deletion of the directory, but doesn't touch anything on disk. This works also for a file, like:
Afterwards you may want to add
somedir/
orsomefile.ext
to your.gitignore
file so that git doesn't try to add it back.I would just:
git rm
the folder, commit the change.gitignore
(or.git/info/excludes
), commit the change