git常用命令
设置用户名
git config --global user.name xclhove
设置邮箱
git config --global user.email xclhove@qq.com
生成ssh公钥
ssh-keygen -t rsa
查看公钥
cat ~/.ssh/id_rsa.pub
在 Git 中创建一个不继承任何历史记录的分支
git checkout --orphan new_branch
设置用户名
git config --global user.name xclhove
设置邮箱
git config --global user.email xclhove@qq.com
生成ssh公钥
ssh-keygen -t rsa
查看公钥
cat ~/.ssh/id_rsa.pub
在 Git 中创建一个不继承任何历史记录的分支
git checkout --orphan new_branch