English 中文(简体)
如何防止某些档案被复制到一个新的分支,而实际上不将其删除。
原标题:How to prevent certain files from being copied to a new branch without actually deleting them in git
  • 时间:2023-05-26 02:34:28
  •  标签:
  • git

请允许我说,我有<条码>branchA,其中载有<条码>.github/workflows/ci-cd.yml。 每当法典被推向时,这个部门就开展“Gite Hub”行动。

现在,我需要从<条码>/条码>上设立一个新的分栏目<>branchB,但我并不希望它包含<条码>。 档案是因为这个部门没有采取任何行动。

其后,我将最终合并<条码>。 重新编号为branchA,触发Gite Hub 行动。 但是,每当我合并一个没有<代码>yml的分支,branchA syml的档案也删除。

问题回答

简单明了,在从BranchA进行分行之后,你可以产生一项包含删除<代码>的承付款。

您也可在<代码>上进行互动的检索。 BranchB (git rebase -i) to drop the first commitments. 结果是,我认为,你从未删除过更清洁的垃圾卷宗,而没有承诺删除垃圾卷宗,而还有一份又一次归还。





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

热门标签