git push -u origin master
Bad owner or permissions on /home/alex/.ssh/config
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
sudo nano /home/alex/.ssh/config
HOST localhost
HostName localhost
我的行动:
sudo apt-get install git-repo
在页面https://github.com/settings/keys添加了“New SSH key” Title:"ggshaman888" Key:"file content ~/.ssh/id_rsa.pub"
在页面https://github.com/ggshaman888/work_experience/settings字段中的“源您的 GitHub Pages 站点当前正在从主分支构建。了解更多。” 选择“主分支”
cd ~/folder_project
git init
git remote add origin git@github.com:ggshaman888/work_experience.git
git remote -v show
origin git@github.com:ggshaman888/work_experience.git (fetch)
origin git@github.com:ggshaman888/work_experience.git (push)
git config --global user.email "gg.shaman888@gmail.com"
git config --global user.name "ggshaman888"
git commit -m "reinitial commit"
感谢@jfs 的解决方案
以下是汇总问题:
部分有帮助,但忘记了密码
重复以上几点...
更新:2
更新:3
决定: