创建自己的ssh密钥
ssh-keygen -t rsa -b 4096 -C "your_address@qq.com"
执行命令之后会生成密钥和公钥
Your identification has been saved in /home/yourself/.ssh/id_rsa.
Your public key has been saved in /home/yourself/.ssh/id_rsa.pub.
复制公钥,并保存在github账号设置里面
User Setting -> SSH Keys
常用命令:
git config --global user.email "your email address"
git config --global user.name "your username"
git log --decorate=full
git merge origin/develop
git config --global credential.helper store
git reset --hard HEAD
git commit -m "this is commit"
git tag
修改之前cherry-pick的comments
git rebase -i HEAD~20
git commit --amend