问题
I already made a project there, add, commit, push. Unfotunately, I've got power surgery :'(
When I've tried restart my PC, I cd
back to my project folder, but suddenly it looks like these:
UserName@PC /c/xampp/htdocs/website
before
UserName@PC /c/xampp/htdocs/website (master)
I tried git init
and this showed up:
Reinitialized existing Git repository in c:/xampp/htdocs/website/.git/
but, nothing happen to my repo T__T
it still looks like these:
UserName@PC /c/xampp/htdocs/website
Thank you very much, your guidance please t(^_^)
EDIT: I did git stash save
before power surgery & this files comes up:
http://imgur.com/7sGctAg
回答1:
If you did push, you can try and:
- clone again in another folder
- check that it does look like /c/xampp/htdocs/otherfolder (master)
- if it does, rename otherfolder to website, and go on working in that fresh clone
来源:https://stackoverflow.com/questions/25867686/reinitialized-existing-git-repository-in-c-xampp-htdocs-website-git