赞
踩
git config --global user.name "Your Name"
git config --global user.email "email@example.com"
git config user.name
git config user.email
ssh-keygen -t rsa –C "youremail@example.com"
在当前用户名路径下生成一个".ssh"文件夹,下属有二个文件:id_rsa(私钥)、id_rsa.pub(公钥)
将id_rsa.pub里面的内容填入GitHub中的Key中即可
mkdir wiki-to-thir
cd wiki-to-thir
git init
git add README.md
git commit -m "add README.md"
git remote add origin git@github.com:fangjian98/wiki-to-thir.git
git push -u origin master
git push origin master
git diff README.md
git diff HEAD -- README.md
git clone git@github.com:fangjian98/wiki-to-thir.git
pwd
git branch
git status
cat README.md
git pull origin master
git log
git log --author=fangjian
git log | grep error
git reset --hard HEAD^
git reset --hard 1094a
git checkout -- README.md
git reset HEAD README.md
git checkout -- README.md
git reset --hard HEAD^
git reset --hard HEAD^^
git reset --hard 1094a
rm README.md
git rm README.md
git commit -m "remove README.md"
git checkout -- README.md
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。