重新初始化c:/xampp/htdocs/website/.git/中的现有Git存储库 [英] Reinitialized existing Git repository in c:/xampp/htdocs/website/.git/

查看:936
本文介绍了重新初始化c:/xampp/htdocs/website/.git/中的现有Git存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在那里做了一个项目,添加,提交和推送。不幸的是,我有权力手术:'(



当我尝试重新启动我的电脑时,我 cd 回到我的项目文件夹,但突然看起来像这样:

UserName @ PC / c / xampp / htdocs / website 之前

<用户名@ 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

解决方案

如果你在推送过程中,您可以尝试:


  • 再次在另一个文件夹中克隆

  • 检查它是否存在看起来像/ c / xampp / htdocs / otherfolder(master)

  • 如果是这样,将其他文件夹重命名为网站,然后继续使用该新鲜克隆

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

解决方案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆