【问题标题】:Commit specific files from one branch to another将特定文件从一个分支提交到另一个分支
【发布时间】:2021-04-10 10:41:08
【问题描述】:

我有两个分支mastertesting

我只想从测试分支提交两个文件夹。其余部分保持原样。

例如:

master

index.js

来源

变量

testing

index.js[*]

来源[*]

变量[*]

testing 的更改提交到master 之后:

master

index.js

来源[*]

变量[*]

【问题讨论】:

标签: git branch commit


【解决方案1】:

试试这个

git checkout testing -- <path/>

【讨论】:

    猜你喜欢
    • 2011-05-06
    • 2013-05-03
    • 1970-01-01
    • 2011-09-16
    • 1970-01-01
    • 2017-07-16
    • 2018-08-12
    • 2021-03-22
    • 1970-01-01
    相关资源
    最近更新 更多