msysgit

Which is the smarter git protocol, ssh or git(over ssh) or https protocol?

杀马特。学长 韩版系。学妹 提交于 2019-11-27 19:14:59
Which is efficient? SSH:// or Git:// (File compression) I understand in Git , git protocol is smart because there is a protocol agent on both end of communication to compress the file transfer resulting in faster clone by efficiently using the network bandwidth. From an O'Reilly book I found the following statements. For secure, authenticated connections, the Git native protocol can be tunneled over an SSH connection using the following URL templates: ssh: //[user@]example.com[:port]/path/to/repo.git ssh: //[user@]example.com/path/to/repo.git ssh: //[user@]example.com/~user2/path/to/repo.git

Does the current version of msysgit support process substitution?

旧街凉风 提交于 2019-11-27 18:04:55
问题 Under my version of msysgit, I can't use process substitution. cat <(echo 'foo') sh.exe": cannot make pipe for process substitution: Function not implemented If I upgraded to the latest version of msysgit, would its version of msys / mingw be able to handle process substitution? My current version of msysgit is 1.7.0.2.msysgit.0 and GNU bash is version 3.1.0(3)-release (i686-pc-msys). 回答1: Afraid this is still a no as of 1.7.6.msysgit.0 which has Bash 3.1.0(1). bash-3.1$ bash --version bash -

Git push fails with “fatal: early EOF” when PUSHing but only on one file

隐身守侯 提交于 2019-11-27 17:45:32
问题 When I try adding textures and text files to my repo it all works, but when I try adding a .blend file I get this error. I've tried a bunch of things I found here and on google, none of them worked (all were for clone/pull commands) I'm using Tortoise git 1.7.8 and Git 1.7.10 msysgit - I changed to them after the latest builds failed. Others have no problem pushing things to the repo, but I did not send them the .blend file. Here is the output: Pushing to ssh://git@x.x.x:x/home/git/gitrepo

Git for Windows - The Program can't start because libiconv2.dll is missing

瘦欲@ 提交于 2019-11-27 17:28:46
When I attempt to run certain commands (like git push, for example) from a git Bash on Windows 7 (64bit) I get the error: The program can't start because libiconv2.dll is missing from your computer I have searched exhaustively for a solution to this. The most I can find is an issue thread at the google code site ( Issue 419 ) and a few other blogs here and there. As far as I can tell none of the suggestions offered in the posts will actually solve my issue. I have tried re-installing. I have tried adding $GIT/bin to the PATH . I can verify that the dll is in the $GIT/bin directory...but still

msysgit error with hooks: “git error: cannot spawn .git/hooks/post-commit: No such file or directory”

会有一股神秘感。 提交于 2019-11-27 14:19:34
问题 I'm having trouble getting post-recieve and post-commit hooks to work correctly with msysgit (Windows 7 Pro/32 and Ultimate/64). For post-commit hook I get the above error if I commit from either git-bash or the console, but it works fine if I commit through git-gui. For a post-recieve hook, all three give the same error. I'm thinking this is some sort of permission or path error, but don't really have any clue where to start here. 回答1: Add the SHEBANG to the first line of hook, like so: #!

Alter Git prompt on Windows

无人久伴 提交于 2019-11-27 12:08:58
问题 I'm using Git on Windows, installed through GitExtensions with MSysGit (latest) having selected "do not modify my Windows prompt" during installation. Now, I would like to be able to modify the default prompt (which by default shows just the branch name to also show me how much time, and how many local commits since I last pushed to origin (or specifically origin/master , whichever is easier). So say instead of: me@myPC /c/myRepo (master) I would see something along the lines of: me@myPC /c

Windows shortcut to run git bash script

被刻印的时光 ゝ 提交于 2019-11-27 11:54:20
Assuming I have a test.sh script that runs a server and Git Bash installed, how do I create a Windows shortcut that I can double click to run tesh.sh in Git Bash in the foreground and allows me to see the output of the server? Git bash is already a batch file with content similar to this : C:\WINNT\system32\cmd.exe /c ""C:\Git\bin\sh.exe" --login -i" If you want run (and leave running) a shell script in the context of the shell, specify it at the command line. The trick is that when the script file name is interpreted, it uses the Windows path , not the equivalent path in the sh/Git

msysgit on windows — what should I be aware of, if any?

送分小仙女□ 提交于 2019-11-27 10:48:02
This is related to another question I asked recently. When installing msysgit, the installer presents 3 options related to system path: Never change windows environment. With this option, you have to use the "bash" shell to work with git. Add the git\bin directory to the PATH environment variable, but without overriding some builtin windows tools. Fellow stackoverflow-ian Gabe Moothart told me in a comment that this option will make some git operations fail! What are these operations? Should I worry about them? Same as 2 but override some default system tools. What are these tools? What parts

Git Bash Shell fails to create symbolic links

孤者浪人 提交于 2019-11-27 10:47:15
When I try to create a symbolic link from the Git Bash shell, it fails every time all the time: $ ln -s /c/Users/bzisad0/Work testlink ln: creating symbolic link `testlink' to `/c/Users/bzisad0/Work': Permission denied The only thing it does, besides give the error message, is create an empty directory named (in this case) testlink . I don't see any problem with the ln executable. For instance, it is owned by me and marked as executable: $ which ln /bin/ln $ ls -hal /bin/ln -rwxr-xr-x 1 BZISAD0 Administ 71k Sep 5 11:55 /bin/ln I also own the current directory ( ~ , which is /c/Users/bzisad0 ):

msysGit vs Git for Windows

我是研究僧i 提交于 2019-11-27 10:20:58
I am having trouble determining the difference between msysGit and Git for Windows . How are they different? Why would I choose one over the other? Are they not the same thing? On: http://msysgit.github.com/ The title is Git for Windows, the application is msysgit. Even in the event they are not, I expect the only differences will be in the method of compilation (i.e. compiler used and any options set) and any extraneous packaging (such as having a bash emulating shell as in msysgit). The actual product (Git itself) should remain broadly similar. Edit : Thanks to Jarrod for pointing this out.