老师,我重试了下,一步步跟着教程走的,还是不行,贴下代码

来源:3-2 项目目录结构设计与Git远程仓库的建立

TheBayMax

2017-09-25

Tom@Tom-PC MINGW64 ~/Desktop
$ git --version
git version 2.8.0.windows.1

Tom@Tom-PC MINGW64 ~/Desktop
$ vim .gitconfig

Tom@Tom-PC MINGW64 ~/Desktop
$ git st
git: 'st' is not a git command. See 'git --help'.

Did you mean one of these?
        status
        reset
        stage
        stash
        svn

Tom@Tom-PC MINGW64 ~/Desktop
$ git xxx
git: 'xxx' is not a git command. See 'git --help'.

Tom@Tom-PC MINGW64 ~/Desktop
$ git clone git@gitee.com:wymaipai/51maipai.git
Cloning into '51maipai'...
The authenticity of host 'gitee.com (120.55.226.24)' can't be established.
ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.
Are you sure you want to continue connecting (yes/no)?
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Tom@Tom-PC MINGW64 ~/Desktop
$ ssh-keygen -t rsa -C "xxx@51maipai.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Tom/.ssh/id_rsa):
/c/Users/Tom/.ssh/id_rsa already exists.
Overwrite (y/n)?

Tom@Tom-PC MINGW64 ~/Desktop
$ cat ~/.ssh/
cat: /c/Users/Tom/.ssh/: Is a directory

Tom@Tom-PC MINGW64 ~/Desktop
$


写回答

1回答

Rosen

2017-09-25

.gitconfig要放到用户目录,可以执行mv .gitconfig ~/  来移动;
cat ~/.ssh/后面是tab键

0
0

真实数据对接 从0开发前后端分离的企业级上线项目

【毕设项目精品】前端实战,对接真实服务端数据,开发完整项目

4276 学习 · 4121 问题

查看课程