How do I resolve a conflict after git pull?

You don’t need mergetool for this. It can be resolved pretty easily manually. Your conflict is that your local commits added a file, vision_problem_8.h, that a remote commit also created, by a rename from vignette_generator_mashed.h. If you run ls -l vision_problem_8.h* you will probably see multiple versions of this file that git has preserved for … Read more

git rebase upstream/master vs git pull –rebase upstream master

The git pull –rebase will fetch (git fetch) first, updating upstream/master commits. If you just rebase without first updating upstream/master, you won’t get the same result. I illustrate it in “master branch and ‘origin/master‘ have diverged, how to ‘undiverge’ branches’?” SnakE mentions in the comments that git pull –rebase isn’t exactly git fetch && git … Read more

Visual Studio 2015 Git error message “Cannot pull/switch because there are uncommitted changes”

For me I didn’t have any uncommitted changes or any untracked files, and Visual Studio 2015 still presented the warning. Close the solution in Visual Studio, exit Visual Studio. Open Git Bash (or your favorite Git UI) Navigate to your repository (or open the repository with the Git UI) git pull (or perform pull on the Git … Read more

How to pull into not-the-current-branch?

git fetch -u origin master:master Merge, update, and pull Git branches without using checkouts git fetch -u <remote> <remoteBranch>:<localBranch> The -u or –update-head-ok ensures that the command still works even if you have the given branch checked out, which otherwise gives the error: fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository

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