msysgit

GIT .mailmap works per repo, but not in global, why?

时光毁灭记忆、已成空白 提交于 2019-12-05 09:53:13
I have a group of repos and I have a .mailmap file to combine user names. My .mailmap file works for all the repos, when it is in the root of each. I tried to put the file in my ~/.gitconfig file and it doesn't work. Im using Git for Windows and in my global .gitconfig file I added this: >> git config --global mailmap.file "~/.mailmap" Thats the command I used. Also tried the log shown below. [log] mailmap = ~/.mailmap [mailmap] file = C:/Documents and Settings/<username>/.mailmap Both lead to the same file location, but it doesn't seem to honor this file when using git-shortlog Any

File mode with msysgit

一个人想着一个人 提交于 2019-12-05 08:03:21
I cloned a Git repository from Windows using msysgit (v1.7.7) on a network drive. Some files are marked on the repository to have mode 100755. Using the git bash tool from Windows, the ls -l command effectively shows the good permissions for those file. Now when I access the repository directory from Linux, those files have 644 permissions instead of 755. If I chmod them to 755 on the Linux side and go back to the git bash tool on Windows: the ls -l command still shows the files to have 755 permissions but the git diff command tells the files changed mode from 100755 to 100644 Any idea how to

What does git-config(1) mean when it says “colors are used only when the output is to a terminal”?

瘦欲@ 提交于 2019-12-05 07:12:59
I'm outputting to a terminal, but Git is not correctly detecting that I'm outputting to a terminal, for the purposes of coloring the output. My question is, what does git-config(1) really mean when it says "colors are used only when the output is to a terminal" (this phrase appears at the end of multiple config descriptions, such as for color.ui and color.branch)? In other words, how does Git decide whether or not it's outputting to a terminal, and how do I change my environment settings to inform Git that my terminal is indeed a terminal? Specifics: I'm using rxvt terminal with Cygwin on

Display changes with Git to zip's

狂风中的少年 提交于 2019-12-05 06:43:42
问题 I'm using git-gui on Windows Vista (via msysgit), and I'm trying to make the diff area (the yellow one) display changes in office files (eg .xlsx - they are really zipped up .xml files) In C:\Users\Daniel\ .gitconfig [diff "zip"] textconv = unzip -c -a In repository: (As a side note, I'd rather have this in C:\Users\Daniel, what should I do? ) .gitattributes *.xlsx diff=zip After committing an .xlsx file, changing it and rescanning, I get this message: Binary files a/notes/GaussianMountain

msysGit sudo-like command

老子叫甜甜 提交于 2019-12-05 05:41:19
If we open msysgit as administrator, we can use it as if we were root. However, it is often easier to open without administrator privileges. For example, for administrator privileges, you often have to go to Windows Explorer, the Start menu/screen, etc., and you can't do this from the taskbar. Sometimes, I'm too lazy to do all this, but I want to gain administrator privileges while in Bash. Is there a sudo - or su -like command or script, etc., for Git Bash? Going into cmd.exe , PowerShell , etc., then doing something like runas would work, if there's nothing else. you can't do it from the

Cygwin git push hangs, msysgit okay

人走茶凉 提交于 2019-12-05 04:16:21
I'm behind a proxy, and I'm quite new to git and I'm on Windows XP. I've been able to make a git push origin master work from msysgit but can't make it work in Cygwin with Cygwin's git. I configured git using the following command lines in both environments: git config --global user.name ... git config --global user.email ... git config --global http.proxy ... I'm playing with a test Github repo. The issue I have is with the following command line: git push origin master In msysgit, I have the following result: Writing objects: 100% (3/3), 222 bytes, done. Total 3 (delta 0), reused 0 (delta 0)

“Git Bash here” is not preserving bash history between sessions

爷,独闯天下 提交于 2019-12-05 03:45:24
I am running Git-1.8.0-preview20121022 on Windows 7 and the install was with "Git Bash Only" (least intrusive to Windows cmd). When I open the Git Bash from the start menu shortcut, everything is fine with the history. But when the Git Bash here context menu (either the git-cheetah shell extension one or the simpler registry one) is what launched a session, the commands from that session are not saved to the .bash_history . How could figure out why this is happening? Or better yet, does someone know how to fix this? Steven Penny You should be able to fix this by adding this line to your ~/

Why does Ctrl-Z on Windows Git bash shell fail?

混江龙づ霸主 提交于 2019-12-05 01:53:27
I sometimes have to work in Windows, which often means using the Bash shell. If I am (for example) in vim ( not gvim ) with several files open, and I hit Ctrl Z to briefly go back to the shell and do something before returning to vim , instead of suspending my vim process Git Bash creates a new DOS shell. This is the last thing I'd ever want. Googling turns up nothing useful (at this point in time - YMMV in my future). What is going on? I sometimes have to work in Windows, which often means using the Git Bash shell. Good. Me too. If I am (for example) in vim (not gvim) with several files open,

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

依然范特西╮ 提交于 2019-12-04 23:41:39
问题 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 ? 回答1: 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

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

徘徊边缘 提交于 2019-12-04 15:42:50
问题 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