14. Git 使用总结
记录
ubuntu 在后台启动 ssh 代理并添加私钥
$ eval “$(ssh-agent -s)”
ssh-add ~/.ssh/id_ed25519
但是遇到了错误消息 “It is required that your private key files are NOT accessible by others. This private key will be ignored.”
需要 chmod 600 <private_key_file>
查看某个分支是从哪个分支拉出来的
git reflog --date=local | grep 分支名
fatal: remote origin already exists
1 | git remote add origin************** |