msysgit

msysgit sh.exe arguments

Deadly 提交于 2019-12-04 00:50:44
I am trying to find some documentation about msysgit sh.exe command. For instance I am aware of the --login flag to launch a git bash session but I would to know the other possibilities. I have looked over the internet but can not find any place where is listed all the possibles arguments. poke > .\sh.exe --help GNU bash, version 3.1.0(1)-release-(i686-pc-msys) Usage: ".../Git/bin/sh.exe" [GNU long option] [option] ... ".../Git/bin/sh.exe" [GNU long option] [option] script-file ... GNU long options: --debug --debugger --dump-po-strings --dump-strings --help --init-file --login --noediting -

How can I get my git (msysgit on windows) post-commit script to invoke my python script as python rather than bash?

丶灬走出姿态 提交于 2019-12-03 21:07:56
问题 I wrote a post commit script in python, "c:\myfolder\myscript.py". I want to invoke it from the post-commit script. This doesn't find it: #!/bin/sh c:\myfolder\myscript.py bash thinks the command c:myfoldermyscript.py - the slashes get dropped. So, I tried forward slashes: #!/bin/sh c:/myfolder/myscript.py But then it seems like bash thinks my .py file is itself a bash script, and so I get bash errors as it mistakenly tries to interpret it. 回答1: The first line of a script is called a Shebang,

Git can't find .ssh

余生颓废 提交于 2019-12-03 17:04:49
问题 Problem using msysgit on Windows; it can't find .ssh/id_rsa, even though it is present where it should be. I verified that's the problem with ssh -v git@github.com; that command works when and only when I use the -i option to explicitly point it at the correct id_rsa file but as far as I can tell, git itself doesn't have such an option; and I can't find anything either on Google or in the supplied documentation. The peculiar thing is, it worked fine last time I used git a few months ago, and

How do I use git-new-workdir on windows?

南楼画角 提交于 2019-12-03 15:45:36
I have a repo that has two branches, which i would like to work on simultaneously. After some reading I found git has a script git-new-workdir . Im trying run use the script from the git for windows bash but get the following error. $ git-new-workdir sh: git-new-workdir: command not found How do I use this script on windows ? Due to some of the commands in the git-new-workdir functions not existing on windows, the script won't work. I have found this windows port of the script. Works great for me. https://github.com/joero74/git-new-workdir VonC Git 2.5 (Q2 2015) will replace contrib/workdir

Git GUI crashes every time it opens a repository

这一生的挚爱 提交于 2019-12-03 11:34:21
问题 Since few days ago, every time I start Git GUI in a repository, it displays this horrifying error message and quits after I click OK: prepare-commit-msg hook failed: 0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487 AllocationBase 0x0, BaseAddress 0x68560000, RegionSize 0x260000, State 0x10000 C:\Program Files (x86)\Git\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0 You must correct the above errors before committing. It only happens with Git GUI

Does git support wildcards in paths?

梦想与她 提交于 2019-12-03 10:34:59
问题 I have looked, searched, and read documentation and can't really find anything about this. Basically, I want to be able to do this: git reset -- *.exe or git reset -- */some_executable.exe Instead of this: git reset -- some/very/long/path/some_executable.exe Also it'd be nice to be able to do this: git reset -- topleveldirectory/another/subdirectory/* Instead of this: git reset -- topleveldirectory/another/subdirectory/SomeFile.cpp git reset -- topleveldirectory/another/subdirectory/SomFile.h

How to use Git in a sneakernet environment?

一个人想着一个人 提交于 2019-12-03 09:53:15
My project has a number of test PCs which are 100% off-net. We use a USB drive to transfer files too and from these PCs. Some development happens during the tests on those PCs. We transfer zips of the updated files, with the 'version info' coded in the name of the zip file. My question is how best to use Git for managing the sneakernet transfer of files (or repos, or what?) between the project's office PCs and the test PCs. It's not the normal 'use case' that is often presented for laptop users being 'off-net' and developing in some corner cafe, and later getting back on net. Has anyone got

git svn show-ignore gives error “command returned error: 1”

大兔子大兔子 提交于 2019-12-03 09:44:47
I'm trying to migrate a project from SVN to git. This is the command I use: $ git svn clone http://oursvnserver/ --no-metadata -A ../authors-transform.txt --trunk=path/to/trunk --branches=path/to/branches --tags=path/to/tags . --username=mysvnusername --prefix=origin/ The current directory is the directory that I want to become a repository. authors-transform.txt is most definitely in the right location. The project uses the standard layout, but it does not exist at the root of the repository. (Unfortunately, someone long ago started the practice of just stuffing all projects into the same

how do i get git to show command-line help in windows?

我的梦境 提交于 2019-12-03 08:32:16
问题 How do i get git to show command-line help in windows? I'm using msysgit 1.7.4. It's defaulting to open the html help in the browser. I just want to show the text help on the console. I've seen the config help.format (which is set to html by default). I tried setting this to man or info, but it just says that: fatal: no info viewer handled the request Thanks, matt 回答1: Issue 187 issue 696 does report: The main problem is that we do ship neither man.exe nor the man pages . Otherwise, you could

Git can't find .ssh

╄→尐↘猪︶ㄣ 提交于 2019-12-03 06:48:53
Problem using msysgit on Windows; it can't find .ssh/id_rsa, even though it is present where it should be. I verified that's the problem with ssh -v git@github.com; that command works when and only when I use the -i option to explicitly point it at the correct id_rsa file but as far as I can tell, git itself doesn't have such an option; and I can't find anything either on Google or in the supplied documentation. The peculiar thing is, it worked fine last time I used git a few months ago, and I haven't changed anything since then that seems a likely cause. I've tried the following, all to no