您的位置:首页 > 其它

Ubuntun 使用git

2017-05-26 21:36 190 查看

Ubuntun 使用git

1.配置名字,邮箱
git config --global user.name "XX"
git config --global user.email "youremail"
2.在出现一个错误时配置这个,下面会有提示
git config  --global  push.default matching
3.删除/home/XX/.ssh下面的Known_hosts
4.$ ssh-keygen -t rsa -C "your@email.com"
5.把/home/xx/.ssh/下面的id_rsa.pub文件内容复制到git网站上产生ssh
详细:点击打开链接

6.执行ssh-add
7.ssh -T git@github.com
当出现欢迎界面就好了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  git配置 ubuntun