fatal: Not a git repository (or any of the parent directories): .git
当从github.com上面下载下了Firmware后,无意中删除了Firmware目录下的.git文件夹,再去编译就会出现:
fatal: Not a git repository (or any of the parent directories)
的错误。这是由于本地版本管理仓库被删除了,需要重新初始化仓库,建立新的仓库:
当从github.com上面下载下了Firmware后,无意中删除了Firmware目录下的.git文件夹,再去编译就会出现:
fatal: Not a git repository (or any of the parent directories)
的错误。这是由于本地版本管理仓库被删除了,需要重新初始化仓库,建立新的仓库:
git init
$ git init
Initialized empty Git repository in F:/kaboshi/vue-muse-kbs/src/views/balancepay/.git/
Alice@DESKTOP-1AQEPBE MINGW64 /f/kaboshi/vue-muse-kbs/src/views/balancepay (master)
$ git status
On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
index.vue
list.vue
walletDetails/
nothing added to commit but untracked files present (use "git add" to track)
Alice@DESKTOP-1AQEPBE MINGW64 /f/kaboshi/vue-muse-kbs/src/views/balancepay (master)
就可以了。只需要git init