老师,终端是不是我们的Git BASH Here 在里面复制了ssh,还是没有成功,自己的地址是在哪里看呀

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

TheBayMax

2017-09-25

这是我的Git BASH Here   
Tom@Tom-PC MINGW64 ~/Desktop
$ git clone itee.com:wymaipai/51maipai.git: No such file or directory
Too many arguments.

usage: git clone [<options>] [--] <repo> [<dir>]

    -v, --verbose         be more verbose
    -q, --quiet           be more quiet
    --progress            force progress reporting
    -n, --no-checkout     don't create a checkout
    --bare                create a bare repository
    --mirror              create a mirror repository (implies bare)
    -l, --local           to clone from a local repository
    --no-hardlinks        don't use local hardlinks, always copy
    -s, --shared          setup as shared repository
    --recursive           initialize submodules in the clone
    --recurse-submodules  initialize submodules in the clone
    --template <template-directory>
                          directory from which templates will be used
    --reference <repo>    reference repository
    --dissociate          use --reference only while cloning
    -o, --origin <name>   use <name> instead of 'origin' to track upstream
    -b, --branch <branch>
                          checkout <branch> instead of the remote's HEAD
    -u, --upload-pack <path>
                          path to git-upload-pack on the remote
    --depth <depth>       create a shallow clone of that depth
    --single-branch       clone only one branch, HEAD or --branch
    --separate-git-dir <gitdir>
                          separate git dir from working tree
    -c, --config <key=value>
                          set config inside the new repository
    -4, --ipv4            use IPv4 addresses only
    -6, --ipv6            use IPv6 addresses only


Tom@Tom-PC MINGW64 ~/Desktop
$ cd ~/.ssh/

Tom@Tom-PC MINGW64 ~/.ssh
$

Tom@Tom-PC MINGW64 ~/.ssh
$ ssh-keygen -t rsa -C "我要卖牌"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Tom/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Tom/.ssh/id_rsa.
Your public key has been saved in /c/Users/Tom/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:BZPFl2sVQWSxDO/I7DbOKLqIrhbdG9PU7r3ePKZRTrg 我要卖牌
The key's randomart image is:
+---[RSA 2048]----+
|        o+. .+B+ |
|        .o. o=.. |
|        . .. o+  |
|       . o o+o   |
|  . . o S  o+o.  |
| . . + . . .=    |
|  .   + . .E+.   |
| . . o  .. *++   |
|ooo . oo .o+*o.  |
+----[SHA256]-----+

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

Tom@Tom-PC MINGW64 ~/.ssh
$ ^C

Tom@Tom-PC MINGW64 ~/.ssh
$ ssh-keygen -t rsa -C "我是马赛克"
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 ~/.ssh
$

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

Tom@Tom-PC MINGW64 ~/.ssh
$




写回答

1回答

Rosen

2017-09-25

ssh-keygen -t rsa -C "我要卖牌" 这里面是要输入你注册git时候用的邮箱的
cat ~/.ssh/这后面用的是tab键,看看目录下都有什么内容

0
0

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

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

4269 学习 · 4120 问题

查看课程