Questions tagged [msysgit]
msysGit was formerly the development environment to compile Git for Windows 1.0. It was never the actual Git for Windows package, and it is not current. Do not use this tag for general Git questions, use the git tag. Do not use this tag for Git for Windows specific questions, use the git-for-windows tag.
557
questions
1536
votes
21
answers
1.8m
views
Ignoring directories in Git repositories on Windows
How can I ignore directories or folders in Git using msysgit on Windows?
892
votes
8
answers
786k
views
How to change line-ending settings
Is there a file or menu that will let me change the settings on how to deal with line endings?
I read there are 3 options:
Checkout Windows-style, commit Unix-style
Git will convert LF to CRLF when ...
730
votes
36
answers
466k
views
How do you copy and paste into Git Bash
I'm using msysgit running on Windows XP.
Tried Ctrl+V, Right click, Middle click, google... no luck.
688
votes
35
answers
1.3m
views
Unable to resolve "unable to get local issuer certificate" using git on Windows with self-signed certificate
I am using Git on Windows. I installed the msysGit package. My test repository has a self signed certificate at the server. I can access and use the repository using HTTP without problems. Moving to ...
533
votes
3
answers
168k
views
How do I exit the results of 'git diff' in Git Bash on windows? [duplicate]
I'm using Git Bash on Windows 7. When I run git diff, I see this:
However, I'm unable to get back to a regular prompt. Pressing Ctrl+C seems to work, but as soon as I start typing a command, it's ...
518
votes
48
answers
792k
views
fatal: early EOF fatal: index-pack failed
I have googled and found many solutions but none work for me.
I am trying to clone from one machine by connecting to the remote server which is in the LAN network.
Running this command from another ...
467
votes
25
answers
199k
views
Git Bash is extremely slow on Windows 7 x64
I've been using Git on both Windows and Ubuntu during the development of a small project, frequently flipping back and forth between the two. The issue is that Git Bash consistently becomes slow.
...
423
votes
21
answers
191k
views
How to fix "corrupted" interactive rebase?
I managed to create a little mess in my local git repository. I was trying to fix a broken commit by using the following instructions. Before running the "git commit --amend" (and after the git rebase ...
380
votes
19
answers
300k
views
Git on Windows: How do you set up a mergetool?
I've tried msysGit and Git on Cygwin. Both work just fine in and of themselves and both run gitk and git-gui perfectly.
Now how the heck do I configure a mergetool? (Vimdiff works on Cygwin, but ...
352
votes
8
answers
84k
views
How do I remove msysgit's right click menu options?
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 ...
332
votes
22
answers
296k
views
git: 'credential-cache' is not a git command
I followed these instructions to the letter, including the part about password caching. It seems like the instructions are wrong, because every time I git push origin master I get this error:
git: '...
287
votes
9
answers
82k
views
Trying to fix line-endings with git filter-branch, but having no luck
I have been bitten by the Windows/Linux line-ending issue with git. It seems, via GitHub, MSysGit, and other sources, that the best solution is to have your local repos set to use linux-style line ...
256
votes
25
answers
288k
views
SSH Private Key Permissions using Git GUI or ssh-keygen are too open
Recently I've been unable to clone or push to github, and I'm trying to find the root cause.
This is on windows
I have cygwin + git as well as msysgit.
Msysgit was installed with the following ...
213
votes
11
answers
104k
views
How do I use Notepad++ (or other) with msysgit?
How do I use Notepad++ (or any other editor besides vim) with msysgit?
I tried all of the following to no avail:
git config --global core.editor C:\Program Files\Notepad++\notepad++.exe
git config -...
183
votes
13
answers
212k
views
Change the location of the ~ directory in a Windows install of Git Bash
I am not even sure I am asking the right question. Let me explain my situation:
This is about Git on Windows 7.
My company sets up the Windows user directory on a network drive, not on the ...
163
votes
12
answers
139k
views
Setup a Git server with msysgit on Windows [closed]
My friends and I are trying to setup Git for Windows using the tutorial Git Server: Gitosis and Cygwin on Windows, but we just keep running into problems.
What would a "Setup Git Server" guide for ...
118
votes
9
answers
81k
views
use Winmerge inside of Git to file diff
Is there a way to use Winmerge inside of git to do Diffs?
114
votes
7
answers
32k
views
Why does git diff on Windows warn that the "terminal is not fully functional"?
I'm using msysgit 1.7.7.1 on Windows. I get an error when using git diff. What is causing this? Is there no diff tool included in msysgit? What should I do?
WARNING: terminal is not fully ...
112
votes
12
answers
91k
views
Git Bash shell fails to create symbolic links
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
Output:
ln: creating symbolic link `testlink' to `/c/Users/bzisad0/...
109
votes
5
answers
125k
views
Escape @ character in git proxy password
I have git proxy config as 'http.proxy=http://userId:pwd@123@ipaddress:port' but while cloning a remote project, I'm getting error as
Cloning into git...
error: Couldn't resolve proxy '123@ipaddress'...
108
votes
18
answers
127k
views
github: No supported authentication methods available
i use github and have successfully added and synched files on my laptop in the past.
as of recent i started getting "PuTTY Fatal Error: Disconnected: No supported authentication methods available" ...
107
votes
10
answers
86k
views
Where do the settings in my Git configuration come from?
I've noticed that I have two listings for core.autocrlf when I run git config -l
$ git config -l
core.symlinks=false
core.autocrlf=false
color.diff=auto
color.status=auto
color.branch=auto
color....
106
votes
9
answers
56k
views
MSysGit vs. Git for Windows
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?
105
votes
8
answers
108k
views
Package management in Git for Windows (Git Bash)?
I'm reading the github wiki for git-for-windows and it says that msys2 bundles pacman: https://github.com/git-for-windows/git/wiki/Package-management
But when I invoke it I get:
$ pacman
bash: pacman: ...
97
votes
1
answer
41k
views
Differences between Git-scm, msysGit & Git for Windows
What is the difference between git-scm (downloaded from git-scm.com) and msysGit (hosted on Google Code, Github, and probably others)? They both seem pretty similar, and even though I have git-scm, I ...
95
votes
8
answers
32k
views
Can Git treat ZIP files as directories and files inside the ZIP as blobs?
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 file are small text files and change often, while others are larger but ...
94
votes
25
answers
93k
views
Git for Windows - The Program can't start because libiconv2.dll is missing
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
...
91
votes
4
answers
16k
views
Git blame showing no history
When I run git blame on a file (using msysgit) I always get the following sort of printout:
00000000 (Not Committed Yet 2011-01-09 11:21:30 +0200 1) package co
00000000 (Not Committed Yet 2011-01-...
82
votes
19
answers
46k
views
Msysgit bash is horrendously slow in Windows 7
I love git and use it on OS X pretty much constantly at home. At work, we use svn on Windows, but want to migrate to git as soon as the tools have fully matured (not just TortoiseGit, but also ...
80
votes
13
answers
60k
views
Git under windows: MSYS or Cygwin?
I plan to migrate my projects over to git, and I'm currently wondering which is the best and / or most stable option under windows.
From what I gather I basically have 2.5 options:
MSYSgit
git under ...
68
votes
3
answers
49k
views
What happens when I clone a repository with symlinks on Windows?
There's been a lot of questions about adding support for symlinks on Windows. But, what actually happens when I clone a repository with symlinks on Windows?
65
votes
7
answers
54k
views
Which is the smarter git protocol, ssh or git(over ssh) or https protocol?
Which is efficient? SSH:// or Git:// (File compression)
I understand in Git, git protocol is smart because there is a protocol agent on both ends of communication to compress the file transfer ...
60
votes
9
answers
92k
views
How to change RGB colors in Git Bash for windows?
I'm using Git Bash in Windows and for the purposes of my custom git log format, I'd like to modify the terminal's exact RGB color values so I can fine-tune the color outputs. My git log format is as ...
60
votes
4
answers
26k
views
Git Windows Command Prompt gets stuck during Git commands with (END)
I've got Git for Windows setup (msysgit) and it was working fine for the last few days and today I've encountered an odd error.
When issuing a Git command in the Windows Command Prompt or in the Git ...
60
votes
4
answers
89k
views
Windows shortcut to run a Git Bash script
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 ...
57
votes
9
answers
51k
views
msysgit error with hooks: "git error: cannot spawn .git/hooks/post-commit: No such file or directory"
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-...
56
votes
5
answers
88k
views
Git revert local commit
I have a git repo hooked up in phpstorm on windows. I committed a few change sets then pushed them to our "central repo". After this I have then made a few more commits. I no longer want these commits ...
53
votes
6
answers
91k
views
How do I write a batch file which opens the GitBash shell and runs a command in the shell?
I'm on Windows 7 trying to use a batch file to open the GitBash shell and make a git call.
This is the contents of my batch file:
REM Open GitBash
C:\Windows\SysWOW64\cmd.exe /c ""C:\Program Files (...
51
votes
15
answers
78k
views
Invoking notepad++ from Git Bash
I am using msysgit in Windows 7. How do I invoke notepad++ from Git Bash, like we do it with our default notepad?
Like for example
name@usename notepad textfile.txt
Instead I want the file to open ...
51
votes
7
answers
114k
views
Git error: fatal: unable to connect a socket (Invalid argument)
I've got msysGit (Git on Windows) working just fine on my home machine, but at work, where we are behind a Microsoft ISA proxy, I get the following error when I do a Git clone:
H:
cd \
git clone git://...
50
votes
6
answers
58k
views
Configure Git to use Plink
I'm trying to configure Git to use Plink. It worked for me many times before. Now, for some reason, this option isn't available to me (it is disabled):
I tried uninstalling and reinstalling Git a ...
49
votes
1
answer
20k
views
git, msysgit, accents, utf-8, the definitive answers
I've read in some places that there are problems with git (or just msysgit?) and character encoding - I believe it's only a problem in file names.
What I'd like is some 'definitive' (or at least ...
46
votes
2
answers
32k
views
Git 1.6.4 beta on Windows (msysgit) - Unix or DOS line termination
I am installing msysgit 1.6.4 beta on my Windows Vista development VPC. An install screen is requesting whether I want to use Unix line termination or DOS line termination. Ordinarily, I'd choose DOS, ...
45
votes
7
answers
6k
views
MSysGit Bash - how to enable Ctrl+Left / Right arrows?
Is there a way to enable Ctrl + ← / → keyboard shortcuts (go to previous / next word) in the Bash console installed with MSysGit?
45
votes
3
answers
23k
views
Git apply patch fails silently (no errors but nothing happens)
I'm trying to apply a patch, and git apply patch doesn't give me any errors:
sashoalm@SASHOALM-PC /c/Workspace/tesseract-git/api (master)
$ git apply ../../commit-d0d9477
sashoalm@SASHOALM-PC /c/...
43
votes
3
answers
17k
views
How can I find out which files have been modified in a branch?
I have two branches: master and bug1. I checked out bug1, did bunch of changes and multiple commits. How do I get a list of all files that were changed on the branch? I'm not interested in hashes, ...
41
votes
5
answers
22k
views
msysgit on windows -- what should I be aware of, if any?
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 ...
41
votes
4
answers
29k
views
Git, adding files to repository gives fatal error for LF ->CRLF
I'm new to git and I need some help. I'm using msysgit on windows.
When I execute the command git add [folderName] I get the response:
fatal: LF would be replaced by CRLF in [.css file or .js file]
...
41
votes
2
answers
17k
views
Passing windows slash (/) based parameters to a program from bash script
I'm trying to run the following from my bash script. (bash installed via msysgit)
taskkill /IM ssh-agent.exe
The output I get on the screen from taskkill is:
ERROR: Invalid argument/option - 'C:/...
37
votes
3
answers
10k
views
How do I enable msysgit colored output when using console2
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 ...