问题1
sourcetree克隆远程仓库到本地,在自己的电脑上把项目复制到仓库文件内,在sourcetree工具内没有显示出可提交的文件。
解决问题:
打开项目内隐藏文件删除.git隐藏文件,在sourcetree就可以显示可提交文件,因为sourcetree认为.git是可忽略项目所以不显示。
问题2
使用sourcetree提交远程码云仓库无法提交成功,报错提示:Please make sure you have the correct access rights and the repository exist是因为ssh公钥没有在码云git仓库配置。
解决问题:
1.生成公钥
ssh-keygen -t rsa -b 4096 -C "邮箱名"
2.查看ssh文件:
ls ~/.ssh/
3.输出私钥公钥文件
id_ed25519 id_ed25519.pub
4.输出私钥公钥文件
cat ~/.ssh/id_ed25519.pub