git-config

VS 2015 + Bower: Does not work behind firewall

白昼怎懂夜的黑 提交于 2019-11-27 00:32:23
Problem In Visual Studio 2015, using bower, my package restores fail when behind a firewall with an error similar to: ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/jzaefferer/jquery-validation.git", exit code of #-532462766 I have updated my git config to use http instead of git. When I run from my command line, the command is successful: But Visual Studio or one of its components appears to be using git instead of http regardless. Background & First Attempt to Resolve Using Visual Studio 2015 and Bower for package management. It works great when not behind a

Git: can I suppress listing of 'modified content'/dirty submodule entries in status, diff, etc?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 21:22:14
Somewhen (around the 1.6.x releases, I think) git became aware of changes inside submodules. That only serves to annoy me: $ git status vendor | grep modified: # modified: vendor/rails (modified content) $ git diff vendor/ diff --git a/vendor/rails b/vendor/rails --- a/vendor/rails +++ b/vendor/rails @@ -1 +1 @@ -Subproject commit 046c900df27994d454b7f906caa0e4226bb42b6f +Subproject commit 046c900df27994d454b7f906caa0e4226bb42b6f-dirty Please make it stop? Edit: Ok, so I have an answer. Now I have another question: Can I put this in ~/.gitconfig ? From my initial it appears that I cannot, and

How to make git diff --ignore-space-change the default

别等时光非礼了梦想. 提交于 2019-11-26 19:26:31
问题 I could probably setup an alias, but it seems like I should be able to set this as an option in the config file, only I don't see anyway to do it. I only want the --ignore-space-change when I'm doing diff, not when I'm doing apply or anything else. I'm trying to make the diff easier to understand by not cluttering it with with extraneous +/- lines that have no real changes on them. 回答1: According to the Git Config manual, there's no such option. Your only option is to make an alias. http:/

git multiple user names for the different projects within the same system [duplicate]

二次信任 提交于 2019-11-26 18:44:20
问题 This question already has answers here : Can I specify multiple users for myself in .gitconfig? (20 answers) Closed 5 years ago . I have a different git repository for my office and a different git repo for my hobby projects. When I do git config --global user.name the user name changes globally and this creates a confusion of committing to a repo with user name. Hence the question is how can i have the same username across all my hobby projects and the same username across the office

How to save username and password in GIT?

陌路散爱 提交于 2019-11-26 18:02:23
I want to use a push and pull automatically in GitExtension , without entering my user and password in a prompt, every time. So how can I save my credentials in GIT ? Neetika Run git config credential.helper store then git pull provide a username and password and those details will then be remembered later. The credentials are stored in a file on the disk, with the disk permissions of "just user readable/writable" but still in plaintext. If you want to change the password later git pull Will fail, because the password is incorrect, git then removes the offending user+password from the ~/.git

override git config --system in .gitconfig user file ( git config --global )

时光总嘲笑我的痴心妄想 提交于 2019-11-26 11:28:20
问题 I have that file in a system wide configuration (but it can also be included with git config include.path=\"/path/to/defaultconfig\" I would like to reset some values previously setted. In particular, the default config file contains diff.external = git-diff-wrapper , and I would like to deactivate it for some user 回答1: If it is a system wide config, each user can override a config value in his/her global and local settings. But there is no easy way to "deactivate" a setting in a lower config

git: 'credential-cache' is not a git command

一个人想着一个人 提交于 2019-11-26 10:05:40
问题 I followed these instructions to the letter, including the part about password caching. It seems like the instructions are wrong, because every time I git push origin master I get this error: git: \'credential-cache\' is not a git command. See \'get --help\'. ... at which point I am forced to enter my username and password. After doing so, I am presented with the same error message again, followed by the output from git push . Here is the contents of my .gitconfig file: [user] name =

VS 2015 + Bower: Does not work behind firewall

无人久伴 提交于 2019-11-26 09:27:02
问题 Problem In Visual Studio 2015, using bower, my package restores fail when behind a firewall with an error similar to: ECMDERR Failed to execute \"git ls-remote --tags --heads git://github.com/jzaefferer/jquery-validation.git\", exit code of #-532462766 I have updated my git config to use http instead of git. When I run from my command line, the command is successful: But Visual Studio or one of its components appears to be using git instead of http regardless. Background & First Attempt to

Git: can I suppress listing of 'modified content'/dirty submodule entries in status, diff, etc?

主宰稳场 提交于 2019-11-26 07:56:52
问题 Somewhen (around the 1.6.x releases, I think) git became aware of changes inside submodules. That only serves to annoy me: $ git status vendor | grep modified: # modified: vendor/rails (modified content) $ git diff vendor/ diff --git a/vendor/rails b/vendor/rails --- a/vendor/rails +++ b/vendor/rails @@ -1 +1 @@ -Subproject commit 046c900df27994d454b7f906caa0e4226bb42b6f +Subproject commit 046c900df27994d454b7f906caa0e4226bb42b6f-dirty Please make it stop? Edit: Ok, so I have an answer. Now I

Git excludesfile for a branch

拜拜、爱过 提交于 2019-11-26 07:35:37
问题 I want to ignore certain files within a branch without having to rely on a tracked .gitignore file that will be overwritten during merges with other branches. I’ve closely followed a Stack Overflow answer along with the linked blog post, but my repo doesn’t seem to be recognizing the specified excludesfile in my .git/config . The Git documentation (git-config, gitignore) doesn’t seem to show how to specify and address an excludes file for a specific branch. My .git/config looks like this: