msysgit

How to use my changes for merge in git?

淺唱寂寞╮ 提交于 2019-12-04 13:02:56
How do I force "my changes" when merging in git? Someone put all bin directories in git and now I have a terrible merge conflict :( Now it says the following: When you have resolved this problem run "git rebase --continue". If you would prefer to skip this patch, instead run "git rebase --skip". To restore the original branch and stop rebasing run "git rebase --abort". I do NOT want to merge, i just want to delete all those files using my changes. EDIT: Most of the files was successfully merged, either through automatic merge or because there was no conflict. However quite a few still exist

Git diffing crashes on Windows when submodules exist

限于喜欢 提交于 2019-12-04 11:20:15
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. I can't reproduce such issues with diff and submodules, but if you don't care about submodules diff, you can do: git diff --ignore-submodules I fixed this by installing Microsoft kb2458000 (The conhost.exe process crashes when an

Is there an opposite command to git archive for importing zip files

亡梦爱人 提交于 2019-12-04 10:23:43
Our local workflow tends to use a sequence of zip files as the local 'source control' before major revisions are formalised into the 'big' company SCM system. I'm trying to introduce git as a better local SCM method. The current workflow is quite effective for our small team, particularly as test machines are off net, as zip transfer is easy, so I need to be able to dovetail the two methods. Is there a git command(s) that will import a project zip file and perhaps commit it? Or is it a case of manually checking that the local working directory/branch is clean git status , remove all current

git.cmd vs git.exe - what is the difference and which one should be used?

寵の児 提交于 2019-12-04 10:00:14
问题 I have a rough idea that git.cmd is only a wrapper (but added to PATH by default), but I found out that git.exe works as well and I intend to use it as a workaround to this issue (comments to it rather, regarding chcp on XP64). Would that be not recommended for any reason at all? Also, is git.cmd really needed in the first place? Note: The chcp issue I am referring to is not caused by missing PATH entries as in 'chcp' is not recognized as an internal or external command, operable program or

Is there a git activity log?

和自甴很熟 提交于 2019-12-04 08:32:49
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 there it is, a .git folder, that to me appeared out of nowhere, to my dismay! I ask the only other

How do I remove msysgit's right click menu options?

假装没事ソ 提交于 2019-12-04 07:38:44
问题 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 in my shell, but I'm left with these annoying context-menu options. How do I get them to go away? Do I have to write a script to uninstall them? 回答1: 64-Bit Windows From a cmd.exe window, run these commands: cd "C:\Program Files (x86)\Git\git-cheetah" regsvr32 /u git_shell_ext64.dll 32-Bit Windows

How do you copy and paste into Git Bash

只谈情不闲聊 提交于 2019-12-04 07:17:58
问题 I'm using msysgit running on Windows XP. Tried Ctrl + V , Right click, Middle click, google... no luck. 回答1: Press Insert . Also, to copy from the window, try clicking the console's window icon (topleft) and choosing Edit -> Mark, then drag a box on the text, then press Enter. (You can also paste via the window icon menu, but the key is faster.) UPDATE Starting from Windows 10 the CTRL + C , CTRL + V and a lot of other feature are implemented in conhost.exe so they should work with every

Git config alias doesn't work anymore

余生长醉 提交于 2019-12-04 07:10:25
I used command: git config --global alias.st status to add my first alias as suggested by post - How do I alias commands in git? Then, I found it being added to config file at: C:\Users\damodar.bashyal\.gitconfig So, i added bunch of aliases directly on the config file and all worked perfectly until today when I had to restart my computer after installing MYOB software. When i tried to use alias none worked. So, i added another alias using above command, but the file didn't get updated but new alias worked fine. So after struggling for a while found a command at [ Where does git config -

Dealing with EOL characters in Cygwin Git and Git for Windows accessing the same repository

好久不见. 提交于 2019-12-04 05:56:06
My autocrlf is equal to true. In my cygwin-shell git status gives me a correct list of all my changes. In Git Bash git status says I modified all files in the project. I also see this in Git GUI and the Changes-tab in IntelliJ. How is this possible, and more importantly, how can I fix it? kostix Cygwin Git "sees the world" as if it runs on a POSIX platform—thanks to the emulation provided by Cygwin. Contrary to this, Git for Windows is a native Windows program which does not use any emulation and tries to be as close to Windows standards (however idiotic) as possible. What this leads to is

Git安装(msysgit命令行工具 + TortoiseGit可视化工具 )

北慕城南 提交于 2019-12-04 02:15:09
Win7上Git安装及配置过程 http://blog.chinaunix.net/uid-25806493-id-3319781.html 文档名称 Win7上Git安装及配置过程 创建时间 2012/8/20 修改时间 2012/8/20 创建人 Baifx 简介(收获) 1、在win7上安装msysgit步骤; 2、在win7上安装TortoiseGit步骤; 3、在VS2010中集成Git方法和步骤。 参考源 Git的配置与使用 http://wenku.baidu.com/view/929d7b4e2e3f5727a5e962a8.html 一、安装说明 1、Git在windows平台上安装说明。 Git 是 Linux Torvalds 为了帮助管理 Linux 内核开发而开发的一个开放源码的版本控制软件。目前Git已经可以在windows下使用,主要方法有二:msysgit和Cygwin。Cygwin和Linux使用方法类似,Windows版本的Git提供了友好的GUI(图形界面),安装后很快可以上手,此处我们主要讨论基于msysgit的Git安装和使用。 TortoiseGit是TortoiseSVN的Git版本,TortoiseGit用于迁移TortoiseSVN到TortoiseGit。一直以来Git在Windows平台没有好用GUI客户端