github 远程推送的正确姿势


1. 上 github建立新的 Repository

2. 本地要推送的文件夹下git init,git add * ,git commit(别忘了设置.gitignore)

3. 检查C:\Users\your_user_name\.ssh文件夹下有无id_rsa和id_isa.pub这两个文件,if没有,参考:[阮一峰git教程](这里)

4. 添加远程库:

git remote add origin your_repository_address

5. 推送:

  git push -u  your_repository_address

   过程中可能会问你要用户名和密码,填上去就行,注意,是用户名,不是邮箱

你可能感兴趣的:(github 远程推送的正确姿势)