English 中文(简体)
我如何扭转“承诺申报”的 g子?
原标题:How do I do the reverse of gitk s "Write commit to file"?

我写了一张从<条码>gitk上填写的文档,右翼打上了承诺,并选择了“承诺存档”。

我如何从这一档案中适用承诺? I can do git application,git Add and git committed com子,但是否有单步的指挥,只取得产出(带有承诺的信息和元数据)并投入使用?

最佳回答

我是用六氯环己烷设计的,但我认为我看到你再次谈论的内容。 在<代码>gitk上 在对一项承诺进行权责制时,有“承诺提交”的选择,这就形成了一个行使指挥权的方言:<条码>git diff-treestdin -p-pretty。

<>代码>git 适用只适用于应用电梯,即它赢得立标的物,因此应当使用。 git am应为开展这一行动的正确工具,因为它制造了物体。 然而,它不理解上述指挥部门的产出格式,造成你看到的错误。

最容易的办法可能是使用<条码>git am, 即使用<条码>git 格式-TOP而不是<条码>创建发送系统。 可能有一种办法强迫<代码>git am进入理解git diff-tree格式,但我并没有发出如此之多的信号。

问题回答

No-one seems to have provided an actual answer to the question, so here s what I found from https://github.com/sinsunsan/archiref_wiki/wiki/Git-howto

patch -p1 < patch-file

这就要求书面制作的拼凑文件存档,告诉它无视第一级的道路(-p1),即档案中的a/、b/,并适用于光盘上的现有文件。 结果是在你的工作树上,可以作为一项新承诺:

git commit -am Commit message here please. 

<>代码>git am可做您重新研究的事情。 作为投入,它采用<代码>git格式-TOP产生的配对。 我不知道<代码>git-gui正在推出。

我以trick方式解决这一问题。 我猜想的是,我用trick手.。

我在一段时间前就接过了我的老主司,现在决定对我的新项目逐个作出承诺。 看来,几天后,我用我的档案模式在一次袭击和另一起攻击中 me。

So after consistently creating theese commit files for move-over by hitting gitks "Write commit to file" I ve started to "git apply" commit- files one by one while editing some of them in notepad. Here is a sample of fix that worked for me.

I tweaked

index 30d5c59..63e26fb 100755

使他们看上去。

old mode 100644
new mode 100755
index 30d5c59..63e26fb

希望将有助于其他人。





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

热门标签