I created a git repository with git init
. I'd like to delete it entirely and init a new one.
相关问题
- 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
Windows cmd prompt: (You could try the below command directly in windows cmd if you are not comfortable with grep, rm -rf, find, xargs etc., commands in git bash )
Delete .git recursively inside the project folder by the following command in cmd:
If you really want to remove all of the repository, leaving only the working directory then it should be as simple as this.
The usual provisos about
rm -rf
apply. Make sure you have an up to date backup and are absolutely sure that you're in the right place before running the command. etc., etc.true,like mine was stored in USERS,so had to open USERS go to View on you upper left find Options,open it and edit folders'view options in view still to display hidden files/folders,all your folders will be displayed and you can deleted the repo manually,remember to hide the files/folders once done with the delete.
I did this, and it worked just fine.
1. Remove the .git file from the repo by
rm -fr .git
2. Remove the repo folder by
rm -R path\your_repo_name
In windows:
Now you can delete .git folder
If you want to delete all .git folders in a project use the following command:
This will also delete all the .git folders and .gitignore files from all subfolders