Git merge left HEAD marks in my files

Those are conflict markers. You’re still in the process of merging, but there were some parts that Git couldn’t merge automatically. You’ll need to hand-edit those parts to what you want them to be and then commit the results. For instance, in your particular case, you’d probably want to resolve it like this (note – … Read more

How to interactively (visually) resolve conflicts in SourceTree / git

From SourceTree, click on Tools->Options. Then on the “General” tab, make sure to check the box to allow SourceTree to modify your Git config files. Then switch to the “Diff” tab. On the lower half, use the drop down to select the external program you want to use to do the diffs and merging. I’ve … Read more

can’t push to branch after rebase

First, you and those you’re working with need to agree whether a topic/devel branch is for shared development or just your own. Other developers know not to merge on my development branches because they’ll be rebased at any time. Usually the workflow is as follows: o—–o—–o—–o—–o—–o master \ o—–o—–o devel0 \ o—–o—–o devel1 Then to … Read more

Why am I merging “remote-tracking branch ‘origin/develop’ into develop”?

git pull is probably creating the commit. If you make a local commit and then run git pull after someone else pushes a commit up to the repository, Git downloads the other developer’s commit and then merges it into your local branch. How to avoid these merge commits in the future You could use git … Read more

Git: How to pull a single file from a server repository in Git?

Short Answer It is possible to do (in the deployed repository): git fetch –all // git fetch will download all the recent changes, but it will not put it in your current checked out code (working area). Followed by: git checkout origin/master — path/to/file // git checkout <local repo name (default is origin)>/<branch name> — … Read more

How to use Visual Studio Code as the default editor for Git MergeTool including for 3-way merge

Update: As of Visual Studio Code 1.70 Three-way merge with improvements were added. Visuals and further explanations are available if that’s of interest to you 😉. As of Visual Studio Code 1.13 Better Merge was integrated into the core of Visual Studio Code. The way to wire them together is to modify your .gitconfig and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)