重新初始化c:/xampp/htdocs/website/.git/中的现有Git存储库 [英] Reinitialized existing Git repository in c:/xampp/htdocs/website/.git/
问题描述
我已经在那里做了一个项目,添加,提交和推送。不幸的是,我有权力手术:'(
当我尝试重新启动我的电脑时,我 cd
回到我的项目文件夹,但突然看起来像这样:
UserName @ PC / c / xampp / htdocs / website $ c $在
之前
<用户名@ PC / c / xampp / htdocs / website(master)
我尝试了 git init
,这表明:
在c:/xampp/htdocs/website/.git /
中重新初始化了现有的Git存储库,但没有任何事情发生我的回购T__T
它仍然看起来像这样:
用户名@ PC / c / xampp / htdocs /网站
非常感谢您的宝贵意见,敬请指出(^ _ ^)
编辑:我在手术前< code> git stash save >这个文件出现了:
< a href =http://imgur.com/7sGctAg =nofollow> http://imgur.com/7sGctAg
如果你在推送过程中,您可以尝试:
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:
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
这篇关于重新初始化c:/xampp/htdocs/website/.git/中的现有Git存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!