将本地ssh添加到Gitblit

1. 查看本机是否存在ssh(Git Bash)

cd ~/.ssh

2. 创建ssh

ssh-keygen

3. 查看ssh

cat ~/.ssh/id_rsa.pub

4. 添加到远程仓库

5.配置全局usename.useremail

扫描二维码关注公众号,回复: 11157235 查看本文章

git config --global user.name "xxx"

git config --global user.email "xxx@xxx"

猜你喜欢

转载自www.cnblogs.com/jiadaxiadedaimashenghuo/p/12809073.html