git-merge

.gitattributes merge strategy not working

夙愿已清 提交于 2021-02-20 18:23:50
问题 I'm using a merge strategy in .gitattributes to preserve files during merges. I also used git config --global merge.ours.driver true; to set the driver in my config (I checked the config for [merge "ours"] driver = true and it is there). My merge strategy is set correctly: src/public/bundle.js merge=ours src/public/main.min.css merge=ours server/middlewares/https_redirect.js merge=ours Yet when I merge, I am still getting the files from the branch being merged. What could I be doing wrong?

.gitattributes merge strategy not working

﹥>﹥吖頭↗ 提交于 2021-02-20 18:22:47
问题 I'm using a merge strategy in .gitattributes to preserve files during merges. I also used git config --global merge.ours.driver true; to set the driver in my config (I checked the config for [merge "ours"] driver = true and it is there). My merge strategy is set correctly: src/public/bundle.js merge=ours src/public/main.min.css merge=ours server/middlewares/https_redirect.js merge=ours Yet when I merge, I am still getting the files from the branch being merged. What could I be doing wrong?

.gitattributes merge strategy not working

杀马特。学长 韩版系。学妹 提交于 2021-02-20 18:17:23
问题 I'm using a merge strategy in .gitattributes to preserve files during merges. I also used git config --global merge.ours.driver true; to set the driver in my config (I checked the config for [merge "ours"] driver = true and it is there). My merge strategy is set correctly: src/public/bundle.js merge=ours src/public/main.min.css merge=ours server/middlewares/https_redirect.js merge=ours Yet when I merge, I am still getting the files from the branch being merged. What could I be doing wrong?

.gitattributes merge strategy not working

北战南征 提交于 2021-02-20 18:16:31
问题 I'm using a merge strategy in .gitattributes to preserve files during merges. I also used git config --global merge.ours.driver true; to set the driver in my config (I checked the config for [merge "ours"] driver = true and it is there). My merge strategy is set correctly: src/public/bundle.js merge=ours src/public/main.min.css merge=ours server/middlewares/https_redirect.js merge=ours Yet when I merge, I am still getting the files from the branch being merged. What could I be doing wrong?

git fetch + git merge origin/master vs git pull origin/master

一个人想着一个人 提交于 2021-02-11 16:55:45
问题 I thought git pull was like a git fetch + git merge. Being in branchA, I always do a git fetch and then a git merge origin/master. But today, being in a branchA, I tried git pull origin/master and it didn't work but doing a git pull origin master worked. Any thoughts? Extra question, if an updated origin/master and the online version of master are the same, why bother to have origin/master, wouldn't it be more convenient to always work with the online version that is always updated, releasing

Eclipse - Merge tool override previous commits

萝らか妹 提交于 2021-02-11 14:57:31
问题 I'm using Eclipse 2019-12 working with Git using Eclipse UI only If I commit to master before pull previous commits I can't push my commit to server I used Team -> Merge Tool (Merge option was disabled) I merge the changes (shows some files) and then push to upstream Expected: all commits are merged Actual: previous commits weren't added to master Is using Merge tool wrong for conflict? can I use rebase without losing any commits? can't pull previous commits after commit 来源: https:/

How to do a Git pull request on remote branches via the command line

元气小坏坏 提交于 2021-02-11 12:11:15
问题 I have a feeling i'm using the wrong words, or misunderstanding the words i'm using, which is making searching for what I want to do difficult. Right now I have a Git repo with 3 branches hosted on Azure Devops (very similar to Github/Gitlab/Bitbucket etc). My current flow is to commit and push locally (using PHP Storm) and then login to Azure Devops and manually use their UI to do a pull request from my develop branch to my staging branch. Then I log into the server and git pull from the

How to do a Git pull request on remote branches via the command line

 ̄綄美尐妖づ 提交于 2021-02-11 12:11:04
问题 I have a feeling i'm using the wrong words, or misunderstanding the words i'm using, which is making searching for what I want to do difficult. Right now I have a Git repo with 3 branches hosted on Azure Devops (very similar to Github/Gitlab/Bitbucket etc). My current flow is to commit and push locally (using PHP Storm) and then login to Azure Devops and manually use their UI to do a pull request from my develop branch to my staging branch. Then I log into the server and git pull from the

Github - merging commits pull requests to several branches

筅森魡賤 提交于 2021-02-08 08:27:42
问题 We added a flow of mandatory pull requests when pushing code to our 3 main branches - dev, releaseCandidtae and production. the flow is: dev -> feature-branch -> pull request and merge back to dev merge\cherry pick to releaseCandiadte branch merge\cherry pick to production branch Sometimes the feature branch is a fix and go out from production branch and cherry picked back to dev. I understand that the code base might be different but is there a way to merge a commit to a all branches with

GitLab merge behavior - keep file from branch

僤鯓⒐⒋嵵緔 提交于 2021-02-08 07:58:29
问题 Is it possible to default to one branche's version of a file when doing merge requests in GitLab Web Interface? I'm trying to set up the GitLab Web Interface, so that you can use the graphical interface to do merge requests. In these merge requests, certain files on the target branch must not be subject to any changes. Most often, I'm working on web projects with a config.php, and here we can see how it's possible to not overwrite the config in branch 'prod' with anything (ie from 'dev')