git命令行

SSH key

https://www.cnblogs.com/ayseeing/p/3572582.html

1
2
3
4
$ ssh-keygen -t rsa -C "your_email@example.com"
(回车回车)
$ clip < ~/.ssh/id_rsa.pub
(之后粘贴到github的ssh设置里面)

git 操作

1
2
3
4
5
6
git init
git clone git://github.com/fengh16/EDA_Game
git remote add origin git@github.com:fengh16/EDA_Game.git
git add .
git commit -m message
git push

多人协作

首先fork到自己的

之后如果需要,提交pr;

如果之后原作者改掉了东西,就在提交pr里面,改掉方向,从原作者改到自己,之后merge掉