赞
踩
通过cmd设置Home环境变量, 操作命令如下:
setx HOME "%USERPROFILE%"
Note:
可以通过官网下载最新的git: https://git-scm.com/download/win
运行git.exe, 选择第二个选项:Run Git from the Windows Command Prompt,然后一直点击next,具体选项的勾选参考以下图例。
至此安装git完成。
通过cmd命令:
git config --global --edit 文件内容如下(仅供参考): [user] name = xxx email =xxx@yyy.com [core] editor = 'C:\\Program Files (x86)\\Notepad++\\notepad++.exe' -nosession -multiInst -notabbar -noPlugin -ldiff autocrlf = false [color] ui = true [remote "origin "] fetch = +refs/notes/*:refs/notes/* [notes] displayRef = refs/notes/* [log] decorate = short [alias] sh = show st = status rb = rebase mg = merge mt = mergetool ci = commit --verbose co = checkout br = branch di = diff dt = difftool cp = cherry-pick lol = log --graph --branches --remotes --pretty=oneline --abbrev-commit lsh = log --graph --branches --remotes --pretty=short --abbrev-commit [diff] guitool = p4merge tool = p4merge [difftool] prompt = false [difftool "p4merge"] cmd = \"C:/Program Files/Perforce/p4merge.exe\" \"$LOCAL\" \"$REMOTE\ [merge] tool = p4merge [mergetool] trustExitCode = false [mergetool "p4merge"] cmd = \"C:/Program Files/Perforce/p4merge.exe\" \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\" [credential] helper = manager
Note: 注意文件路径。
下载地址:https://tortoisegit.org/download/
运行TortoiseGit-xxxVersion.msi.参考如下图例:
设置external diff viewer, 打开TortoiseGit settings, 按如下图例设置:
设置Merge Tool, 打开TortoiseGit settings, 按如下图例设置:
在.ssh文件夹中创建一个配置文件,该文件夹位于用户的HOME环境变量指向的文件夹中。
最后可以通过ssh -p的指令验证是否与gerrit建立了ssh 连接
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。