English 中文(简体)
git 拖拉后丢失的档案?
原标题:Missing files after git pull?

我的铁路项目与我目前的铁路项目相距甚远,或相似。 我对这两人进行了总结。

git init
git remote add origin blah@blah
git pull

问题是,在我工作复印件中,我的一些档案被添加(不是在边远),在我这样做的时候,情况就是如此。

git status 

it should show a bunch of untracked files. Instead I see the files from the repo that are out of date.
Why didn t it ask me to resolve conflicts in these files? And where are my old files?

最佳回答

“吉特拉”所暗含的合并,必须拥有未承付的地方档案。

我建议这一顺序:

git init
git add .
git commit -m"local"
git remote add origin blah@blah
git fetch origin

此时此刻,存放处有“gitk-all”

合并

git merge remotes/origin/master

This should let you know of conflicts, if any. And local files won t be overwritten.

问题回答

如果在你上述指挥下,你会尝试这样做?

git checkout blah
git pull origin blah

我仍在学习 g,因此我不是正面的,而只是想。 (需要将<条码>blah改为blah@blah,上面的指令中亦有改动)

如果你有当地证件(有工作名录),那么你就不需要<条码>。

git remote add origin blah@blah
git pull

应当足够。

如果您在<>t/code>上填写了git>,就应当放在一个空洞的存放处,然后进口origin的总含量。


我没有当地传票,只是地方档案。

然后,请首先添加(见r-mercado s answer)。

http://www.kernel.org/pub/software/scm/git/docs/git-pull.html

警报: 运行<代码>git 拖拉<> (实际上,<代码>git joint)加上未经同意的改动:虽然有可能,但使你处于冲突情况下难以退步的国家。





相关问题
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 ...

热门标签