English 中文(简体)
clo clo existing
原标题:git clone overwrote an existing repo with the same name

它进行了现有的检查,并做了一些修改,然后检查了同样的背书,并压倒了翻。 是否有办法使旧的重新组合与未商定的变化相结合?

我检查了“git reflogall——但只是给我最近的检查。

EDIT:不能复制这一问题。 因此,在某个地方,一犯错误

最佳回答

That would happen with a git checkout -f
(--force: When switching branches, proceed even if the index or the working tree differs from HEAD. This is used to throw away local changes)

但是,在同一个波上的<条码>git <>/条码>就应当如此:

fatal: destination path  myrepo  already exists and is not an empty directory.

如果你进行了<代码>git 核对——f,任何增加的或非公开的改动(尚未增加)都将丢失。

问题回答

暂无回答




相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签