msysgit

Where is the beginning of the PATH in Git Bash?

本秂侑毒 提交于 2019-12-11 08:23:38
问题 On Windows, the PATH is separated into 2 parts, the System PATH & the User PATH . They can both be displayed and changed in the Control Panel (though not very well). While running msysGit or Git for Windows , a 3rd PATH is created and put before the other 2, meaning programs will look in this 3rd PATH 's folders for a command before the User or System PATH folders. I think msysGit created it because I chose the "Run Git and included Unix tools from the Windows Command Prompt " option during

Git over HTTPS can do ls-list but cannot clone via HTTP proxy

99封情书 提交于 2019-12-11 04:35:49
问题 This is a common question/problem, however I am having slightly different problems than others. I am trying to use git via my http proxy at work. I have already configured my proxy settings in git: C:\Program Files (x86)\Git\bin>git config --global -l http.proxy=https://c172635b4:password@p01.proxy.local:8080 When I issue git ls-remote https://eric@git.assembla.com/myproj.git, it asks me for the password and provides the expected result. This confirms that git is authenticating via the proxy

git- strange characters in output (msys-git)

不打扰是莪最后的温柔 提交于 2019-12-11 02:57:33
问题 I'm using msys-git and notice I often get strange characters in the output after doing a git pull. I presume these are some sort of control characters that some terminals might understand but in a standard windows command prompt they result in this: Source/MidiLib/AudioChannelMixer.cpp ←[m | 6 ←[32m+←[m Source/MidiLib/AudioEnvironment.cpp ←[m | 4 ←[32m+←[m Source/MidiLib/EventIDs.h ←[m | 1 ←[32m+←[m Source/MidiLib/MidiAssignable.cpp ←[m | 207 ←[32m+++++++++++++++++++++++++←[m←[31m---←[m

Preventing git push from sending entire repo if not up-to-date

放肆的年华 提交于 2019-12-10 21:54:49
问题 Related question: why does Git send whole repository each time push origin master The short version: When working with two Git repositories, even if 99% of the commit objects are identical, using git push to send a commit to repository B when origin is set to point to repo A causes all objects (200MB +) to be transferred. The much longer version: We have a second Git repository set up on our continuous integration server. After we have prepared our commit objects locally, instead of pushing

cygwin git thinks that file previously had different mode

青春壹個敷衍的年華 提交于 2019-12-10 17:17:55
问题 I manually built latest version of git for cygwin. The only problem is that it thinks that file mode changed (from 644 to 755). Git that is installed in windows doesn't see any changes. actual file mode is 755 (both windows Git and cygwin git shows the same). So, as a result, 1) on windows git doesn't show any changes whether core.filemode is set to true or false 2) on cygwin git shows changes for modes if core.filemode is set to true or unset and doesn't show any changes when core.filemode

When pushing branches and tags, get error: cannot spawn git: no such file or directory

感情迁移 提交于 2019-12-10 15:27:08
问题 I have an existing, bare, Git repository created from importing our source and history from CVS. I make a mirror, using: git clone --mirror git://aserver.adomain.com/myrepo Then, I want to push all branches and tags to our internal Git repo host, but the push doesn't seem to see the bare repository as a Git repo . I have tried the following: git clone --mirror git://aserver.adomain.com/myrepo git remote set-url origin http://user@anotherserver.adomain.com/project/myrepo.git git push origin

Jenkins not playing nice with a private GitHub repository (Windows)

房东的猫 提交于 2019-12-10 13:43:41
问题 I cannot for the life of me seem to get my Jenkins CI to work with Github. I had failure on the clone command, but that was due to keys, so I logged in as service account (the user Jenkins runs under as a Windows Service) and ran the clone command. All good in the hood. However, when I want to run the fetch to get latest, it won't finish. It just sits there. I have tried via the Git plugin for Jenkins, and also via a Windows commandline script. Neither work. However, if I open a command

Ignoring directories in Git repositories on Windows

谁说胖子不能爱 提交于 2019-12-10 12:28:35
问题 How can I ignore directories or folders in Git using msysgit on Windows? 回答1: Create a file named .gitignore in your project's directory. Ignore directories by entering the directory name into the file (with a slash appended): dir_to_ignore/ More information is here. 回答2: By default, Windows Explorer will display .gitignore when in fact the file name is .gitignore.txt . Git will not use .gitignore.txt And you can't rename the file to .gitignore , because Explorer thinks it's a file of type

using git with apache sshd

徘徊边缘 提交于 2019-12-10 11:36:18
问题 I'm trying to use msysgit over an SSH server I wrote in Java using sshd and I have made great progress in that i got past some git errors, I am able to connect using putty and get a shell, I have git in my windows path, but I still can't actually use git to connect to my repository over my ssh daemon. I get the following error from msysgit: fatal: ''/C/gitrepo'' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access

Git push/pull paths not working to windows origin running msysgit + cygwin sshd

こ雲淡風輕ζ 提交于 2019-12-10 10:08:13
问题 In trying to resolve the issue I was having for: managing website on windows using git, I installed Cygwin openssh and Git for Windows (msysgit) on a Windows 2008 server (let's call this myserver ). I have a bare git repo setup at the cygwin path /var/git/example.git , which maps to c:\cygwin\var\git\example.git on Windows. I have a user git that has permission on the repo's folders. I am able to login with git using key-based authentication to myserver from my XP workstation using Putty. I