msysgit

Git Diff and Meld on Windows

依然范特西╮ 提交于 2019-11-28 19:34:43
Has anyone ever made Meld work with Git on Windows? I am trying to make it work and I have no success. I have Meld installed and when I call it from the command line with two files as parameters it diffs them well so Meld is installed correctly. However I can't make it work with Git (Git Diff). I use version git version 1.8.1.msysgit.1 of Git. I have tried several things: I created a shell script, meld.sh : #!/bin/bash meld.exe "$2" "$5" echo $2 echo $5 and used it from Git: [diff] tool = meld [difftool "meld"] cmd = \"D:\\meld.sh\" I tried to add it as a difftool like this: [diff] tool = meld

Alter Git prompt on Windows

馋奶兔 提交于 2019-11-28 19:15:46
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/myRepo (master) 5 | 10:20 meaning I have last pushed 10h 20min ago and I have made 5 local commits since

Git - How to fix “corrupted” interactive rebase?

拜拜、爱过 提交于 2019-11-28 17:20:47
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 --interactive) I decided that my changes were incorrect and so I executed "git reset HEAD --hard". Not a good idea, I tell you. Now the interactive rebase seems to be "stuck". Git shows the current branch as (|REBASE-m). Every command (cd .., ls, git rebase...) inside my repository gives the following error: cat: .git/rebase-merge/head-name: No such file or directory Here's how git rebase -

Package management in git for windows?

依然范特西╮ 提交于 2019-11-28 16:42:42
问题 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? 回答1: As mentioned in issue 397: This is intended. We do not ship pacman with Git for Windows. If you are interested in a fully

Configure Git to use Plink

我只是一个虾纸丫 提交于 2019-11-28 16:30:48
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 hundred times. Nothing. I can't get to this option enabled. This is an old question, and I just have the same problem, just to be sure I will write down the solution that worked for me. The msysgit installer didn't show the screen that allows to select between the openssh client and the Tortoise (plink) The solution is to install Putty (or Tortoise Plink I guess), create and save at least one session,

Git sh.exe process forking issue on windows XP, slow?

佐手、 提交于 2019-11-28 09:22:18
Git is essential to my workflow. I run MSYS Git on Windows XP on my quad core machine with 3GB of RAM, and normally it is responsive and zippy. Suddenly an issue has cropped up whereby it takes >30 seconds to run any command from the Git Bash command prompt, including ls or cd . Interestingly, from the bash prompt it looks likes ls runs fairly quickly, I can then see the output from ls , but it then takes ~30 seconds for the prompt to return. If I switch to the windows command prompt (by running cmd from the start menu) git related commands also take forever, even just to run. For example git

`msbuild` command not found, but `msbuild.exe` works fine

我们两清 提交于 2019-11-28 08:14:22
问题 I run MSys/Bash as distributed in Git for Windows. I added the folder C:\Windows\Microsoft.NET\Framework\v4.0.30319 to my path, so I could run msbuild but it doesn't work $ msbuild C:\Program Files (x86)\Git\bin\sh.exe: msbuild: command not found Yet msbuild.exe does: $ msbuild.exe Microsoft (R) Build Engine version 4.0.30319.17929 Yet the command explorer resolves fine. What's going on? 回答1: It's a bug in MSys where the same name is shared by a folder and a file (minus the extension). In

Git - Ignore certain files contained in specific folders

百般思念 提交于 2019-11-28 07:32:09
I'm using msysgit and have a project tree that contains many bin/ folders in the tree. Using the .gitignore file in the root of the project I need to ignore all .dll files that reside within a bin/ folder anywhere in the project tree. I've tried "bin/*.dll" but that doesn't work, I assume it is only working against the bin/ folder in the root of the project. Just had a similar problem and realized: The files were already added and checked in to git. How to recognize the difference: Git didn't show the files as "new", but as "modified". This details has cost me quite some time... If that is the

W access for gitolite-admin DENIED to user

[亡魂溺海] 提交于 2019-11-28 04:35:04
问题 I've been trying very hard to get gitolite working. I used the package approach and am able to do a first "git push" with a first user to the server. After that, if if I add a key and try to push something again, I get an error saying "W access for gitolite-admin DENIED to mike"- note that it's supposed to be using the gitolite user- not my username. I guess this is because I'm adding private keys for both users in my .bash_profile. (I'm using msysgit)... Any ideas? Thanks a lot! 回答1: I guess

Exporting / Archiving changed files only in Git

时光总嘲笑我的痴心妄想 提交于 2019-11-28 04:25:46
Is there a simple way to export / archive only the changed files from a given commit or series of commits in git? I can't seem to find clear instructions to do this (and I'm new to Linux/Git). I am using msysgit, and for the most part I'm fine with deploying entire repositories but in many cases it is much more efficient to deploy small fixes a few files at a time. Pushing/pulling/installing git on the remote servers isn't really an option as my level of access varies between projects and clients. Is there a straight-forward way to (rough guess): pipe 'diff --names-only' to 'git-archive'? I