VS 2015 + Bower: Does not work behind firewall

Same problem using VS 2015, my workaround : Install Git http://git-scm.com/ Configure Git to use http instead of git:// with Git Bash git config –global url.”http://”.insteadOf git:// Edit (as pointed by g.pickardou) you can use https to be more secure: git config –global url.”https://”.insteadOf git:// Configure VS to use the new installed Git over VS … Read more

What is the difference between push.default “matching” and “simple”

git push can push all branches or a single one dependent on this configuration: Push all branches git config –global push.default matching It will push all the branches to the remote branch and would merge them. If you don’t want to push all branches, you can push the current branch if you fully specify its … Read more

Windows-specific Git configuration settings; where are they set?

As this commit explains, they’ve added another config location only for Windows, which is applied even before the –system: The file /etc/gitconfig can be used to store a system-wide default configuration. On Windows, configuration can also be stored in C:\ProgramData\Git\config; This file will be used also by libgit2-based software. … On Windows, as there is … Read more

Can gitconfig options be set conditionally?

You can conditionally include another Git config file based on your Git directory or branch in Git 2.13 and later. Put your default configuration in file ~/.gitconfig as usual. At the end, conditionally include another configuration file: [user] email = john@personal.com name = John McGehee # All work Git repositories are in a subdirectory of … Read more

Always use the pager for git diff

This is controlled by the -F (–quit-if-one-screen) option to less. Git uses the options FRSX for/of less by default, if none are specified by the $LESS or $GIT_PAGER environment variables. To change it, specify the core.pager option and set it to RSX: git config –global core.pager ‘less -+F’ Older versions of Git used to recommend … Read more

Local git config not overriding global user for project

I had committed my changes and received a permission denied with my global user. Subsequently setting the local user did nothing, though git config user.name reported the correct local user. What worked was (courtesy of this google groups thread): git commit –amend –reset-author I presume the committed changes had the original author attached.