[sunxiaofei007@vr-gpu06 data0]$ cd ~/.ssh/
[sunxiaofei007@vr-gpu06 .ssh]$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/sunxiaofei007/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/sunxiaofei007/.ssh/id_rsa.
Your public key has been saved in /home/sunxiaofei007/.ssh/id_rsa.pub.
The key fingerprint is:
45:fe:3a:a5:25:23:6a:79:d8:41:18:8f:03:8a:cb:06 sunxiaofei007@vr-gpu06
The key's randomart image is:
+--[ RSA 2048]----+
| . . . |
| . . . = o |
|E . + o o |
|o. o . . |
|.o S o + |
|. = o B |
| = o + |
| . . . |
| |
+-----------------+
[sunxiaofei007@vr-gpu06 .ssh]$ cat id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD3bLE6PlKv+4WCaIntIMboKhWbaXOJ6gKhutLakZfs9UJjJLFo9D5GY8G0toLV6R2NeXlyCwtxCziGUIy9Bt7GI4wggdqZybogA01OQ96VYcsLyfs9UN4M3ommLSFmAAIQNUJPa44ShOQEhTQai3fpbKhAjpLOC+6RCTWTYpl5FjePwK2AVVdaXfk0A4n5Y2u9XbK3LNlkg0BLC/20Xgl4rHf+PLCWpMWLjSJ7F0oiOY9iijrL4dG0wiG+m3PjxXhXWFo5GCiX2dLkD4+9o2KH7t9cIvPSFlmY4JLcjcAu5xcNiM8zoYcIykZY04ZTzqM7RdHeJJ0JMV2YbcHOpO/F sunxiaofei007@vr-gpu06
[sunxiaofei007@vr-gpu06 .ssh]$ eval `ssh-agent`
Agent pid 5286
[sunxiaofei007@vr-gpu06 .ssh]$ ssh-add ~/.ssh/id_rsa
Enter passphrase for /home/sunxiaofei007/.ssh/id_rsa:
[sunxiaofei007@vr-gpu06 .ssh]$ cd
[sunxiaofei007@vr-gpu06 ~]$ git clone git@git.lianjia.com:vrlab_algorithm/SceneUnderstanding.git
正克隆到 'SceneUnderstanding'...
Enter passphrase for key '/home/sunxiaofei007/.ssh/id_rsa':
remote: Enumerating objects: 133, done.
remote: Counting objects: 100% (133/133), done.
remote: Compressing objects: 100% (115/115), done.
remote: Total 133 (delta 14), reused 126 (delta 10), pack-reused 0
接收对象中: 100% (133/133), 157.21 KiB | 0 bytes/s, done.
处理 delta 中: 100% (14/14), done.
git command
git log # 查看log
git pull #
git status
git add filename
git reset --hard 4393f74fac644eda6e2f21f10d2b000df9631edd
git checkout -b sun
git branch
git log
git pull
git status
git add preprocessing/helper.py
git commit -m "name"
git push origin master
git checkout -b d