从github上获取源代码
git clone ADDR......
Install
sudo emerge --ask git (gentoo)
OR sudo yum install git (ubuntu)
Global Setup
git config --global user.name ""
git config --global user.email ""
Create a New Repository 仓库
git clone ssh://......(addr)/.../×××.git
cd ×××
if have readme, commit and push
Existing Folder 本地文件
cd /.../.../
git init
git remote add origin ssh://...(addr).../.../×××.git
git add .
git commit
git push -u origin master
check the KEY before commit and push
create the new KEY for SSH: ssh-keygen -C 'email addr' -t rsa
settings--->SSH keys ---> new SSH kEY
cat ~/.ssh/id_rsa.pub copy to the new SSH KEY