每个git分支都有不同的配置 [英] Different configs in each git branch
问题描述
我有两个git分支: dev
和 master
我使用Travis CI进行构建和测试,并且需要具有不同的 如何合并来自 您在这里有多个选项(在master分支上): : 这可以合并文件,然后将这两个文件恢复到最后一个主提交。 或者你可以运行(如果你的提交历史记录是以这种方式设置): 添加不修改文件的提交。 I have two git branches: I'm using Travis CI for builds and testing and need to have different How do I merge changes from You have multiple options here (on master branch): You can either run: This will merge the files then revert the two files to the last master commit. Or you can run (if your commit history is setup this way): Adding commits where the files are not modified. 这篇关于每个git分支都有不同的配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! .travis.yml
和 config.yml.enc $每个分支/环境的c $ c>(加密配置文件)。
dev-> master
没有合并 .travis.yml
和 config.yml.enc
文件?
git merge --no-commit dev
git checkout .travis.yml
git checkout config.yml.end
git commit -mmerge dev into master
git cherry-pick commit_hash
dev
and master
.travis.yml
and config.yml.enc
(encrypted config file) for each branch/environment.dev->master
without merging the .travis.yml
and config.yml.enc
files?git merge --no-commit dev
git checkout .travis.yml
git checkout config.yml.end
git commit -m "merge dev into master"
git cherry-pick commit_hash