如果已经安装了Ortoisegit,如何从命令行运行git.exe?
我无法从CMD控制台窗口运行git。我需要运行它,因为Ortoisegit不够聪明,无法接受自签名证书来导入SVN存储库。我需要在命令行上运行git.exe如果已经安装了Ortoisegit,如何从命令行运行git.exe?,git,svn,tortoisegit,Git,Svn,Tortoisegit,我无法从CMD控制台窗口运行git。我需要运行它,因为Ortoisegit不够聪明,无法接受自签名证书来导入SVN存储库。我需要在命令行上运行git.exe git.exe svn clone "https://eaxmple.net/svn" "C:\xxx\git" -T trunk Initialized empty Git repository in c:/xxx/git/.git/ Error validating server certificate for 'https://e
git.exe svn clone "https://eaxmple.net/svn" "C:\xxx\git" -T trunk
Initialized empty Git repository in c:/xxx/git/.git/
Error validating server certificate for 'https://esample.net:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
Certificate information:
- Hostname: xxx.net
- Valid: from Jul 23 00:00:00 2012 GMT until Jul 23 23:59:59 2017 GMT
- Issuer: Register.com, US
- Fingerprint: ax:2x:bx:x6:7x:c8:ae:82:01:bx:4a:77:51:dd:9d:6d:e5:63:42:39
(R)eject, accept (t)emporarily or accept (p)ermanently? RA layer request failed: PROPFIND request failed on '/svn': PROPFIND of '/svn': Server certificate verification failed: issuer is not trusted (https://example.net) at C:\msysgit/libexec/git-core\git-svn line 2327
git did not exit cleanly (exit code 1) (5366 ms @ 10/14/2013 9:26:05 AM)
破碎的
固定的
C:\>PATH=%PATH%;C:\msysgit\bin;C:\msysgit\mingw\bin
C:\>git
用法:git[--version][--exec path[=][--html path][--man path][--inf
-路径]
[-p |--paginate |--无寻呼机][--无替换对象][--bare]
[--git dir=][--work tree=][--namespace=]
[-c name=value][--help]
[]
最常用的git命令有:
将文件内容添加到索引
对分通过二进制搜索查找引入错误的更改
分支列表、创建或删除分支
签出到工作树的分支或路径
将存储库克隆到新目录中
将记录更改提交到存储库
差异显示提交、提交和工作树等之间的更改
从另一个存储库获取下载对象和引用
grep打印与图案匹配的线条
init创建一个空的git存储库或重新初始化现有的git存储库
日志显示提交日志
合并将两个或多个开发历史记录合并在一起
mv移动或重命名文件、目录或符号链接
从另一个存储库或本地分支提取并与之合并
将更新远程参照与关联对象一起推送
对更新的上游水头重新设定转发端口本地提交的基础
将当前磁头重置为指定状态
rm从工作树和索引中删除文件
显示各种类型的对象
状态显示工作树的状态
标记创建、列出、删除或验证使用GPG签名的标记对象
有关特定命令的更多信息,请参阅“git帮助”。
C:\>git
'git' is not recognized as an internal or external command,
operable program or batch file.
C:\>PATH=%PATH%;C:\msysgit\bin;C:\msysgit\mingw\bin
C:\>git
usage: git [--version] [--exec-path[=<path>]] [--html-path] [--man-path] [--inf
-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
[-c name=value] [--help]
<command> [<args>]
The most commonly used git commands are:
add Add file contents to the index
bisect Find by binary search the change that introduced a bug
branch List, create, or delete branches
checkout Checkout a branch or paths to the working tree
clone Clone a repository into a new directory
commit Record changes to the repository
diff Show changes between commits, commit and working tree, etc
fetch Download objects and refs from another repository
grep Print lines matching a pattern
init Create an empty git repository or reinitialize an existing one
log Show commit logs
merge Join two or more development histories together
mv Move or rename a file, a directory, or a symlink
pull Fetch from and merge with another repository or a local branch
push Update remote refs along with associated objects
rebase Forward-port local commits to the updated upstream head
reset Reset current HEAD to the specified state
rm Remove files from the working tree and from the index
show Show various types of objects
status Show the working tree status
tag Create, list, delete or verify a tag object signed with GPG
See 'git help <command>' for more information on a specific command.