diffmerge

git 常用命令

牧云@^-^@ 提交于 2020-03-09 20:36:09
git学习地址: http://backlogtool.com/git-guide/cn/intro/intro1_1.html http://sfsheng0322.github.io/2016/02/29/git-branch.html 代码回滚参考地址 http://www.cnblogs.com/qualitysong/archive/2012/11/27/2791486.html 可以在 .bash_profile中添加别名命令或者别名脚本 配置信息: 1.git log --decorate --graph --oneline -10 提交成功后用decorate变为一行, 2.git prelog 可以查看之前所有本地的commit信息 ,git cherry-pick 提交号 可以取回来 3..git/logs/refs/heads 里面含有所有的分支,和各自本地的commit记录,第二列为commit号,可以通过git cherry-pick 提交号 可以取回来 4. git config --global alias.st status git config --global alias.co checkout git config --global alias.ci commit git config --global alias.br branch 5.

Setting diffmerge as visual Git difftool not working

孤街浪徒 提交于 2019-12-21 05:43:09
问题 I am trying to configure DiffMerge as my difftool in Git but having no luck. This is the revelent section of my .gitconfig file (the other settings not shown are just for the user). [diff] tool = diffmerge [difftool "diffmerge"] cmd = \"C:\\Program Files\\SourceGear\\Common\\DiffMerge\\sgdm.exe\" \"$LOCAL\" \"$REMOTE\" Whenever I call git difftool from the powershell command line the conflicts are shown directly beneath in the powershell interface, not in diffmerge as intended. I know the

Problem with git + DiffMerge on OS X

久未见 提交于 2019-12-21 04:16:12
问题 I have configured Sourcegear DiffMerge to be my default git merge tool using the following instructions: git config --global diff.tool diffmerge git config --global difftool.diffmerge.cmd "diffmerge \"\$LOCAL\" \"\$REMOTE\"" git config --global merge.tool diffmerge git config --global mergetool.diffmerge.cmd "diffmerge --merge --result=\"\$MERGED\" \"\$LOCAL\" \"\$BASE\" \"\$REMOTE\"" git config --global mergetool.diffmerge.trustexitcode false Source: http://www.andrejkoelewijn.com/wp/2010/01

How to set up SourceGear DiffMerge as the diff/merge tool for Visual Studio?

限于喜欢 提交于 2019-12-20 10:58:14
问题 I am using TFS for source control, but I want to use SourceGear DiffMerge for viewing file differences and doing merges. I found the Tools -> Options -> Source Control -> Visual Studio Team Foundation Server -> Configure User Tools dialog, but setting up the merge parameters is very confusing. What should those parameters be? 回答1: These are the SourceGear settings that I use: C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe Compare: /t1=%6 /t2=%7 %1 %2 Merge: /m /r=%4 /t1=%7 /t2=%8 /t3=

How do I setup DiffMerge with msysgit / gitk?

孤街浪徒 提交于 2019-12-17 17:26:58
问题 I've just started using Git and it's possible I've missed something obvious, but here goes: I'm using msysgit 1.6.2.2 on Windows XP While installing, I picked option 1 to "Use Git Bash only" I'm trying to put together a wrapper script that I can use to replace the built in git diff with DiffMerge. Based on this thread on SO, I created the following batch file: @echo off REM ---- Switch forward slashes to back slashes ---- set oldW=%2 set oldW=%oldW:/=\% set newW=%5 set newW=%newW:/=\% REM ---

Need help configuring external diff with Eclipse

此生再无相见时 提交于 2019-12-10 09:22:42
问题 I am trying to set up my dev environment and I got SVN running with Eclipse on my mac (with Subclipse). However, when I click on a file I've changed and go to Compare With -> Latest From Repository, I noticed I was getting (what I think is) a sub-par diff tool. So, I went to Preferences -> Team -> SVN -> Diff/Merge to configure an external diff tool (called "DiffMerge"). However, no matter what I put in the "External" field and the "Parameters" field, I cannot get the DiffMerge tool to work.

Git difftool not launching external DiffMerge program

本小妞迷上赌 提交于 2019-12-07 01:40:30
问题 I've been following the directions in the "blog entry by Dave" link in this answer as I'm on Windows 7 and do use SourceGear's DiffMerge tool. I've added the git\cmd directory to my PATH system variable and put my git-diff-diffmerge-wrapper.sh file in there: #!/bin/sh "C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe" "$1" "$2" | cat (Yes, it's the correct path for DiffMerge.) I've edited my .gitconfig file to include the diff and difftool chunks (I copied the lines directly from the

Sourcetree fails to open Diffmerge for merge conflicts

♀尐吖头ヾ 提交于 2019-12-05 17:58:09
Recently I had a fresh install of macOS. I've installed Sourctree and diffmerge and set diffmerge as the default merge tool. For some reason everytime when I select 'Resolve Conflicts -> Open External Merge Tool' sourcetree opens its waiting view and directly closes it. My settings page in sourcetree: This is how my root .gitconfig looks like when sourcetree configures diff merge for me: [core] excludesfile = /Users/[username]/.gitignore_global [user] name = ---- ----- email = -----@-----.-- [commit] template = /Users/[username]/.stCommitMsg [credential] helper = !/Library/Java

Need help configuring external diff with Eclipse

巧了我就是萌 提交于 2019-12-05 16:57:56
I am trying to set up my dev environment and I got SVN running with Eclipse on my mac (with Subclipse). However, when I click on a file I've changed and go to Compare With -> Latest From Repository, I noticed I was getting (what I think is) a sub-par diff tool. So, I went to Preferences -> Team -> SVN -> Diff/Merge to configure an external diff tool (called "DiffMerge"). However, no matter what I put in the "External" field and the "Parameters" field, I cannot get the DiffMerge tool to work. For example, I tried "/Applications/DiffMerge" in the External field (I put the executable directly in

Git difftool not launching external DiffMerge program

戏子无情 提交于 2019-12-05 04:16:47
I've been following the directions in the " blog entry by Dave " link in this answer as I'm on Windows 7 and do use SourceGear's DiffMerge tool. I've added the git\cmd directory to my PATH system variable and put my git-diff-diffmerge-wrapper.sh file in there: #!/bin/sh "C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe" "$1" "$2" | cat (Yes, it's the correct path for DiffMerge.) I've edited my .gitconfig file to include the diff and difftool chunks (I copied the lines directly from the post, and he does leave in the commented-out #external line. I added this to the end of my file; is that