Skip to content

git常用命令

设置用户名

bash
git config --global user.name xclhove

设置邮箱

sh
git config --global user.email xclhove@qq.com

生成ssh公钥

sh
ssh-keygen -t rsa

查看公钥

sh
cat ~/.ssh/id_rsa.pub

在 Git 中创建一个不继承任何历史记录的分支

git checkout --orphan new_branch

最近更新:2/15/2025, 12:23:26 PM

原文链接:git常用命令