msysgit

msysgit broken from 1.7.11?

心已入冬 提交于 2020-01-12 06:55:12
问题 After updating msysgit to 1.7.11, I get the following error when calling git-svn: $ git svn rebase Can't locate Git/SVN/Editor.pm in @INC (@INC contains: /lib /usr/lib/perl5/5.8.8/msys /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/msys /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl .) at C:\Program Files\Git/libexec/git-core\git-svn line 81. BEGIN failed--compilation aborted at C:\Program Files\Git/libexec/git-core\git-svn line 81. Does anyone else experience this problems? 回答1

GIT: does not handle filenames which contain unicode char(e.g. chinese/korean)

筅森魡賤 提交于 2020-01-11 00:56:12
问题 Issues: Using ls in GIT shows all unicode in filenames as '?' (i.e. ???.mp3). When using git add -A the following error is returned: "fatal: unable to stat 'example/???.mp3': no such file or directory" Is there a solution to this? Thanks. 回答1: Msysgit doesn't have support for non-ASCII characters in filenames. See its issue 80 for details. Consider using Cygwin's git package instead, which does have full UTF-8 support. 回答2: As of MSysGit 1.7.10 (the latest version at this time), Unicode is

服务器上的 Git

試著忘記壹切 提交于 2020-01-07 09:08:07
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 生成 SSH 公钥 大多数 Git 服务器都会选择使用 SSH 公钥来进行授权。系统中的每个用户都必须提供一个公钥用于授权,没有的话就要生成一个。生成公钥的过程在所有操作系统上都差不多。 首先先确认一下是否已经有一个公钥了。SSH 公钥默认储存在账户的主目录下的 ~/.ssh 目录。进去看看: $ cd ~/.ssh $ ls authorized_keys2 id_dsa known_hosts config id_dsa.pub 关键是看有没有用 something 和 something.pub 来命名的一对文件,这个 something 通常就是 id_dsa 或 id_rsa 。有 .pub 后缀的文件就是公钥,另一个文件则是密钥。假如没有这些文件,或者干脆连 .ssh 目录都没有,可以用 ssh-keygen 来创建。该程序在 Linux/Mac 系统上由 SSH 包提供,而在 Windows 上则包含在 MSysGit 包里: $ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/Users/schacon/.ssh/id_rsa): Enter passphrase

git push origin master: 'D:/Projects/TheProject' is not a git command

馋奶兔 提交于 2020-01-04 13:44:59
问题 I've got two machines running cygwin ssh with msysgit. I've cloned a git repository from my desktop to my laptop as described in 'X' does not appear to be a git repository (I'm sure the path is correct). This leaves me with a .git/config as follows: [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true hideDotFiles = dotGitOnly [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = GitServer:D:/Projects

git push origin master: 'D:/Projects/TheProject' is not a git command

自作多情 提交于 2020-01-04 13:43:15
问题 I've got two machines running cygwin ssh with msysgit. I've cloned a git repository from my desktop to my laptop as described in 'X' does not appear to be a git repository (I'm sure the path is correct). This leaves me with a .git/config as follows: [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true hideDotFiles = dotGitOnly [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = GitServer:D:/Projects

Git diffing crashes on Windows when submodules exist

怎甘沉沦 提交于 2020-01-01 11:49:03
问题 Using msysgit on windows, whenever I do git diff on a repository that has a submodule or several, the command prompt (and also PowerShell) crash. Is this a known but and is there a fix/workaround? Can I exclude submodules from diff? Also: PS Z:\www\gittest> git --version git version 1.7.6.msysgit.0 EDIT: This has also been reported on the msysgit google group. 回答1: I can't reproduce such issues with diff and submodules, but if you don't care about submodules diff, you can do: git diff -

Is there a git activity log?

青春壹個敷衍的年華 提交于 2020-01-01 10:53:30
问题 Something went really wrong here. Allow me to give the background. Today I try to push to our company default bare msysgit windows server and get a dreaded error message duplicated everywhere in SO about pushing to non-bare. I thought the message was weird, since my server was supposed to be bare. And yesterday it was working just fine. Then I noticed the core.bare is, somehow, set to false ! This was a repo inited with --bare and it never had a " .git " folder in it. And then I go check, and

How to use Git in a sneakernet environment?

天大地大妈咪最大 提交于 2020-01-01 04:11:07
问题 My project has a number of test PCs which are 100% off-net. We use a USB drive to transfer files too and from these PCs. Some development happens during the tests on those PCs. We transfer zips of the updated files, with the 'version info' coded in the name of the zip file. My question is how best to use Git for managing the sneakernet transfer of files (or repos, or what?) between the project's office PCs and the test PCs. It's not the normal 'use case' that is often presented for laptop

Using make with msysgit

假装没事ソ 提交于 2019-12-31 18:54:32
问题 I'm using msysgit on Windows 7, but it doesn't seem to come with make. Is there an easy way to get make running on msysgit? 回答1: I found a link to make.exe in the msysgit Google code issues section. I downloaded it and put it in Git\bin and it works perfectly. 回答2: Suprisingly, by using MSYS itself, or MinGW if you need the GCC compiler - see http://www.mingw.org or better http://tdragon.net/recentgcc. 回答3: did you try the netinstall ? It does come with make. 回答4: I'm going to guess that the

msysgit bash shell- how to troubleshoot “cannot find command”

▼魔方 西西 提交于 2019-12-29 07:12:09
问题 I need help getting git extensions to run with msysgit. I have had bad luck with extensions git-tfs and git-fetchall, in both cases it is the same problem. The addon will require a file to be placed where git can find it (git-tfs.exe and git-fetchall.sh). I understand this to mean the files need to be in a directory that is in the 'PATH' environment variable. In both cases I get stuck at this point: $ git-diffall bash: git-diffall: command not found or: $ git-tfs bash: git-tfs: command not