msysgit

How do I enable msysgit colored output when using console2

怎甘沉沦 提交于 2019-12-02 17:27:16
I'm having a hard time enabling git colored output on windows when using console2. To trick git I've already SET TERM = 'cygwin'. This enabled the colors from a standard cmd.exe prompt but not in console2. I've verified that console2 can see the env var as well. Anyone know how to get this working? Ok, wow. The solution is to disable custom font color in console2. If enabled, it overrides the expected colors. I use a custom color to give me opaque text when using c2's alpha transparency. I completely forgot about it. VonC That is strange because, with a default installation of console2 (2.00

Package management in git for windows?

不羁的心 提交于 2019-12-02 16:13:58
I'm reading wiki on github for git and it says that msys2 bundles pacman: https://github.com/git-for-windows/git/wiki/Package-management But when i'm invoking it: $ pacman bash: pacman: command not found Does anyone has an idea what is going on? To which git version this wiki refers? Is there a way to install additional packages to msys2 inside Git for windows? As mentioned in issue 397 : This is intended. We do not ship pacman with Git for Windows. If you are interested in a fully fledged package manager maintained environment you have to give the Git for Windows SDK a try. The bash that you

Can git treat zip files as directories and files inside the zip as blobs?

Deadly 提交于 2019-12-02 14:11:37
The scenario Imagine I am forced to work with some of my files always stored inside .zip files. Some of the files inside the zip are small text files and change often, while others are larger but luckily rather static (e.g. images). If I want to place these zip files inside a git repository, each zip is treated as a blob, so whenever I commit the repository grows by the size of the zip file... even if only one small text file inside changed! Why this is realistic MS Word 2007/2010 .docx and Excel .xlsx files are ZIP files... What I want Is there, by any chance, a way to tell git to not treat

How do I remove msysgit's right click menu options?

房东的猫 提交于 2019-12-02 13:47:46
This isn't the best programming question but lets face it, the server fault guys aren't well versed in git, so I think its more towards this audience. I want to switch to TortoiseGit, or PortableGit in my shell, but I'm left with these annoying context-menu options. How do I get them to go away? Do I have to write a script to uninstall them? mpmeyer 64-Bit Windows From a cmd.exe window, run these commands: cd "C:\Program Files (x86)\Git\git-cheetah" regsvr32 /u git_shell_ext64.dll 32-Bit Windows From a cmd.exe window, run these commands cd "C:\Program Files\Git\git-cheetah" regsvr32 /u git

How do you copy and paste into Git Bash

和自甴很熟 提交于 2019-12-02 13:46:18
I'm using msysgit running on Windows XP. Tried Ctrl + V , Right click, Middle click, google... no luck. Amber Press Insert . Also, to copy from the window, try clicking the console's window icon (topleft) and choosing Edit -> Mark, then drag a box on the text, then press Enter. (You can also paste via the window icon menu, but the key is faster.) UPDATE Starting from Windows 10 the CTRL + C , CTRL + V and a lot of other feature are implemented in conhost.exe so they should work with every console utility on Windows. (You have to enable Properties -> Option tab -> Quick Edit Mode) Ref: http:/

Can't get git to play nice with iconv and utf-16

为君一笑 提交于 2019-12-01 13:07:54
I'm trying to get git to recognize UTF-16 as text to allow me to diff and patch as text natively, but I'm having trouble getting the textconv parameter to work. I can manually call iconv -f utf-16 -t utf-8 some-utf-16-file.rc and everything is fine. But if I configure my .gitconfig as follows [diff "utf16"] textconv = "iconv -f utf-16le -t utf-8" and my .gitattributes: # Custom for MFC *.rc text eol=crlf diff=utf16 However, if I then if I run git diff , the following is displayed: iconv: C:/Users/Mahmoud/AppData/Local/Temp/IjLBZ8_OemKey.rc:104:1: incomplete character or shift sequence With

Can't get git to play nice with iconv and utf-16

牧云@^-^@ 提交于 2019-12-01 10:58:16
问题 I'm trying to get git to recognize UTF-16 as text to allow me to diff and patch as text natively, but I'm having trouble getting the textconv parameter to work. I can manually call iconv -f utf-16 -t utf-8 some-utf-16-file.rc and everything is fine. But if I configure my .gitconfig as follows [diff "utf16"] textconv = "iconv -f utf-16le -t utf-8" and my .gitattributes: # Custom for MFC *.rc text eol=crlf diff=utf16 However, if I then if I run git diff , the following is displayed: iconv: C:

How to set the correct local time zone in git bash?

杀马特。学长 韩版系。学妹 提交于 2019-12-01 06:51:08
I am using git-bash on a Windows system. The Windows clock shows local time, but inside git-bash everything is in GMT time: $ date Mon Mar 31 16:08:57 GMT 2014 Also setting TZ will not change things: $ TZ="Europe/Berlin" date Mon Mar 31 16:09:01 GMT 2014 Similarly all times it git log are GMT only. Is there a way to set the correct timezone in git-bash? On Windows the TZ variable seems to work differently . To get the German timezone you have to write: TZ=GST-1GDT date If you set it to some "invalid" value like "Europe/Berlin" it will default to GMT. The same seems to happen on my system when

Can someone explain to me what difference git diff is seeing here?

大憨熊 提交于 2019-12-01 05:21:06
问题 I am using git on Windows 7 via msysgit. An issue that has been causing me a lot of grief lately is that as soon as I switch to certain branches, git thinks that some files have been changed and then I can do nothing to make it stop thinking those files have changed. The steps to reproduce in my case (which might not be relevant to everybody) are as follows: Checkout the master branch. Checkout the pristine-3.7 branch. Checkout the pristine-3.8 branch. Checkout the pristine-3.9 branch. At

msysgit troubles

杀马特。学长 韩版系。学妹 提交于 2019-12-01 04:10:34
So I seem to have some real issues setting up msysgit. I can connect via putty to my SSH directory using ssh://user@host:port And I have the correct keys. I can also do this using plink via the plink -P PORT user@host -i /path/to/private_key.ppk When I attempt to run (via TortiseGIT) or via a git bash git clone ssh://user@host:port/path/to/myapp.git I just keep getting the error Initialized empty Git repository in D:/Git/myapp.git warning: You appear to have cloned an empty repository. fatal: The remote end hung up unexpectedly I have checked bot /Git/setup.ini and TortiseGIT and both use C: