Reinitialized existing Git repository in c:/xampp/htdocs/website/.git/

烈酒焚心 提交于 2019-11-29 23:26:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!