0
0

git常用命令

2024-01-28
2025-02-15
文章摘要
|

设置用户名

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

支持与分享

如果这篇文章对你有帮助,欢迎分享给更多人或者给予支持!