日期:2014-05-16 浏览次数:20717 次
ssh-keygen -t rsa -C "committer_email@committermail.com"
ssh -T git@github.com
ssh-add id_rsa
apt-get install git
git config --global user.name 'The Name' git config --global user.email anyemail@mail.com
[user] >---name = LZY under Ubuntu with Hasee >---email = luozhaoyu90@gmail.com这里应该是随便配置用户名和邮箱都可以,这个事方便大家联系
git init
git add *
git commit -m 'your comment'
git remote add origin git@github.com:luozhaoyu/test.git
git push origin master
git clone git://github.com/luozhaoyu/test.git
git pull
git branch查看现在所在的branch分支
git branch newbranchname创建一个新分支
git checkout branchname切换到其它分支OOXX