ssh权限设置

| tags ssh  git 

ssh权限问题

1 chmod 600 ~/.ssh/id_rsa ~/.ssh/id_rsa.pub
2 chmod 644 ~/.ssh/know_hosts
3 chmod 755 ~/.ssh

Logs: To git@github.com:edrun/Mynote.git │
! [rejected] master -> master (non-fast-forward) │
error: failed to push some refs to 'git@github.com:edrun/Mynote.git' │
To prevent you from losing history, non-fast-forward updates were rejected ├─────────────────────────────────
Merge the remote changes (e.g. 'git pull') before pushing again. See the │[root@f15-gvos ~]#
'Note about fast-forwards' section of 'git push --help' for details.

conflict solve

1 git fetch
2 git pull
3 git commit -a
4 git push

上一篇     下一篇