git-flow

Setup GitFlow in VSTS - Best practices?

爱⌒轻易说出口 提交于 2019-12-08 16:24:01
问题 Is there any recommendation how to set up GitFlow with Visual Studio TeamServices? We come from BitBucket and there it's just a simple init. But in VSTS we cannot find any scaffolding. It seems to be we have to set up a lot of manual settings, right? So how to setup usergroups, policies... for a recommended usage with GitFlow in VSTS? 回答1: There is no standard one-click button to setup branches and policies on VSTS to support GitFlow or another type of flow framework for Git (like GitHubFlow

How do you develop along with a git submodule?

╄→гoц情女王★ 提交于 2019-12-08 09:41:33
问题 Here is my project structure MainProject | README.md | src/ | lib/ # this is a submodule When I develop MainProject , I will also develop lib/ , I mean MainProject/lib/ . When I do push, I will copy all changes in MainProject/lib/* into MainProject/../lib/ , which is a separate git directory, then push. After that I will do a submodule update in MainProject/lib/ to latest from remote. Then I will commit and push changes in MainProject . It suffers. How do you develop along with a git

Gitflow - master and develop diverged

℡╲_俬逩灬. 提交于 2019-12-08 09:38:55
问题 Implemented git branching model as shown below http://nvie.com/posts/a-successful-git-branching-model/ But my branch develop and master gets diverged after these steps Step 1 : merge release into master ( no fast forward) Step 2 : merge release into develop ( no fast forward) since merge commit from step 1 will not be available for step 2 , develop and master gets diverged. How to ensure develop and master does not gets diverged. ? 回答1: The git-flow model naturally makes develop and master

Xcode tree conflicts on merge

痞子三分冷 提交于 2019-12-08 08:49:57
问题 I'm working in team with git and every time we try to merge code we have a tree conflict. We're currently working with git flow and we usually start features from develop, when the task is finished one of us merges one feature into the other and then merge it into develop. The problem is than every time we try to merge one feature into another we have a tree conflict in xcode and we don't know how to fix it. The error message is: "The operation could not be performed because of one or more

SourceTree and Git Flow repository init

自作多情 提交于 2019-12-08 06:49:30
问题 sh.exe C:\Users\username\AppData\Local\Atlassian\SourceTree\gitflow_local\gitflow\git-flow init -d flags:WARN -d -- C:\Program Files (x86)\Atlassian\SourceTree\tools\getopt.exe: invalid option -- flags:FATAL unable to parse provided options with getopt. I contacted github account, and want to "Git Flow" and it shows a message like above. 回答1: There was a similar issue reported at Atlassian: It appears though that the issue was a faulty git flow installation prior to the SourceTree install. I

With Git feature branch workflow, when do you update the master branch?

拜拜、爱过 提交于 2019-12-07 13:20:15
问题 I'm fairly new to git and Jenkins. We want to use Jenkins and follow the feature-branch-workflow concept, which I believe is similar to the GitHub flow. I'm aware that the master branch should always be what's currently deployed in production, but then when should the master branch be updated? It seems like there are two choices: BEFORE deploying to production: A pull request gets approved and the successful merge with master triggers the build, deployment to a staging environment, QA testing

持续集成与持续部署宝典Part 4:创建持续部署流水线

心不动则不痛 提交于 2019-12-07 11:34:36
随着Docker项目及其相关生态系统逐渐成熟,容器已经开始被更多企业用在了更大规模的项目中。因此,我们需要一套连贯的工作流程和流水线来简化大规模项目的部署。 Rancher Labs准备了此持续集成与持续部署系列文章,共两万余字,希望能供企业参考如何利用诸如Docker和Rancher这类工具来创建属于企业的持续集成和持续部署流水线,并根据自己的实际情况和需求在这CI/CD流水线中也加入自定义的流程。 本文是此系列文章的最后一篇,我们将在本文中完成创建持续部署流水线的最后工作。本文内容包括创建持续部署流水线(发布Docker镜像、部署到集成环境、发布和部署一个新的版本)和部署策略(就地更新、蓝绿部署)。 创建持续部署流水线 我们已经创建好了测试环境,在前文中我们也构建好了CI流水线,由它来创建应用、将应用打包进容器、进行集成测试。现在我们将来到本系列文章的最终章,拓展CI流水线来创建一个持续部署流水线。 发布Docker镜像 我们首先将打包的镜像发布到Docker存储库中。方便起见,我们使用了一个公共DockerHub仓库,不过,对于实际的开发项目,我们还是建议将Docker镜像push到私有库中。下面我们在Jenkins中创建一个新的Free Style Project任务,点击New Item按钮,把任务命名为push-go-auth-image。完成了这些步骤后

Azure DevOps Release pipeline for create-react-app and GitFlow?

淺唱寂寞╮ 提交于 2019-12-06 21:49:03
We have a creat-react-app application, which includes a couple of variables that are different (react) build time, depending on where the build will be deployed. For example, we need to specify build time which URL will be used, e.g. https://app-stage.company.com for a release-x.y.z build vs. https://app.company.com for a master build (please refer to this article about GitFlow ). We've already created such a build pipeline as suggested here , which will build with the appropriate react config for any commit to branches master , release-x.y.z , dev , hotfix-x.y.z . We would like to create a

Xcode tree conflicts on merge

旧城冷巷雨未停 提交于 2019-12-06 21:32:21
I'm working in team with git and every time we try to merge code we have a tree conflict. We're currently working with git flow and we usually start features from develop, when the task is finished one of us merges one feature into the other and then merge it into develop. The problem is than every time we try to merge one feature into another we have a tree conflict in xcode and we don't know how to fix it. The error message is: "The operation could not be performed because of one or more tree conflicts." Jayeshkumar Sojitra Please add .gitignore file if you have not added. Refer link given

Git flow - managing differences between master and develop

故事扮演 提交于 2019-12-06 17:56:26
I've been using Git Flow for a little while now, however in the initial week or so I was creating release branches manually from master and cherry picking the required commits into the release branch rather than creating them from master. For example, if I have commit abcd123 My commit message in the develop branch, I had also cherry picked it into the release branch manually, and at this point I had probably amended or edited the commit message, so the release branch (and now master branch) contain this commit but with a different hash, e.g. dbca321 My adjusted commit message . The problem