今天在github创建新仓库时遇到了很多意想不到的问题,查了很多东西才顺利地将自己的小项目保存到github上,因此在这记录一下配置过程。相关命令 - git clone [github仓库] - git init - git pull origin master - git remote add origin git@github.com:username/repository.git - git add . - git commit -m "" - git push origin master