msysgit

Is there a way to use Windows Authentication (Active Directory) for a Git server?

房东的猫 提交于 2019-12-18 14:42:31
问题 I have found articles regarding how to install Git on a Windows server and use SSH (such as CopSSH) for authentication. I am a little surprised by this as I remember reading that one should not use a Windows machine for a shared Git repository (sorry don't remember where I read that). My question is can I setup Git to use Windows Authentication rather than SSH? This would be considerably easier for me to administer. Since the machine would be administered by me in my "spare time", easier is

msys git and long paths

陌路散爱 提交于 2019-12-18 12:22:34
问题 I'm trying to use git to more effectively manage working on project which uses CVS for its source control, but I'm having problems add -ing a file which has a very long path indeed - 276 characters. Unfortunately, this file is generated by the custom IDE the tool I'm using is shipped with and it's expected to be there by the tool, so can't be renamed or moved. Using the following to try to make this semi-readable: <projectpath> - the path holding all components for this project <hugepath> -

Setting colors for prompt in Git Bash on Windows

自作多情 提交于 2019-12-18 11:45:16
问题 I've successfully played around with some of the color settings in the Git Bash on Windows - I'm able to set a few things, like the colors of the local, the current and remote branches in my .gitconfig file: [color "branch"] current = cyan bold local = cyan remote = red But what I haven't managed to change are the colors of the prompt - the username@machine at the beginning of the line (in the yellow rectangle in my screenshot), and the project and branch I'm currently on (purple rectangle).

How to export all changed/added files from Git?

半世苍凉 提交于 2019-12-18 11:12:18
问题 I am very new to Git and I have a slight problem. In SVN [this feels like an Only Fools and Horses story by uncle Albert.."during the war..."] when I wanted to update a production site with my latest changes, I'd do a diff in TSVN and export all the changed/added files between two revisions. As you can imagine, it was easy to get those files to a production site afterwards. However, it seems like I'm unable to find an "export changed files" option in Git. I can do a diff and see the changes,

Running git from Windows Cmd line: Where are key files?

给你一囗甜甜゛ 提交于 2019-12-18 10:19:50
问题 So I've installed msysgit, and run git successfuly from the bash shell. From within the bash shell, I've created keys with ssh-keygen - everything works fine. Key files are in my %userprofile%\.ssh folder (from the bash shell, it is: ~/.ssh ). I'm able to connect to my server (unfuddle in my case). Next, I do want to be able to run git from the Windows Cmd shell. Adding c:\msysgit\bin and c:\msysgit\mingw\bin to the search path. Git is working locally just fine: branch, merge, add, commit,

.gitignore does not understand my folder wildcard on windows

左心房为你撑大大i 提交于 2019-12-18 03:11:59
问题 I'm encountering a weird issue with .gitignore on Windows. I want git to ignore all .exe files, except those in the Dependencies folder (and all subfolders). So I have: .gitignore : *.exe !/Dependencies/**/*.exe This, unfortunately, does not work. Meanwhile, this does: *.exe !/Dependencies/folder/subfolder/*.exe So I'm wondering, am I messing something up, or is this some kind of bug? I'm running msysgit on Windows (Windows 7 x64) version 1.6.5.1-preview20091022 Thanks in advance for any

.gitignore does not understand my folder wildcard on windows

♀尐吖头ヾ 提交于 2019-12-18 03:11:54
问题 I'm encountering a weird issue with .gitignore on Windows. I want git to ignore all .exe files, except those in the Dependencies folder (and all subfolders). So I have: .gitignore : *.exe !/Dependencies/**/*.exe This, unfortunately, does not work. Meanwhile, this does: *.exe !/Dependencies/folder/subfolder/*.exe So I'm wondering, am I messing something up, or is this some kind of bug? I'm running msysgit on Windows (Windows 7 x64) version 1.6.5.1-preview20091022 Thanks in advance for any

Git Diff and Meld on Windows

血红的双手。 提交于 2019-12-17 23:23:14
问题 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 =

Unable to add files with name containing tilde, '~' followed by a number

让人想犯罪 __ 提交于 2019-12-17 19:20:19
问题 The folder consists of files with filenames like abc~1 , 123~1 , a1d2~3 . When I do git add --all it says, $ git add --all error: Invalid path 'abc~1.png' error: unable to add abc~1.png to index fatal: adding files failed I did a trial and error and I found this error persists only when the tilde symbol is followed by a number. If the folder is tracked by git for the first time, the other files are also not tracked by Git. $ git clean --dry-run Would remove Rest.png Would remove abc~1.png

Unable to add files with name containing tilde, '~' followed by a number

£可爱£侵袭症+ 提交于 2019-12-17 19:17:44
问题 The folder consists of files with filenames like abc~1 , 123~1 , a1d2~3 . When I do git add --all it says, $ git add --all error: Invalid path 'abc~1.png' error: unable to add abc~1.png to index fatal: adding files failed I did a trial and error and I found this error persists only when the tilde symbol is followed by a number. If the folder is tracked by git for the first time, the other files are also not tracked by Git. $ git clean --dry-run Would remove Rest.png Would remove abc~1.png