git 将本地项目关联到远程仓库

quote

Failure is the mother of success. - Thomas Paine

将本地项目关联到远程仓库

  1. 首先在项目目录下初始化本地仓库
git init
  1. 添加所有文件( . 表示所有)
git add .
  1. 提交所有文件到本地仓库
git commit -m "备注信息"
  1. 连接到远程仓库
git remote add origin 你的远程仓库地址
  1. 将项目推送到远程仓库
git push -u origin master
  1. 如果出现错误,可以这样操作(没有则略过即可)
git pull --rebase origin master

然后就是重新输入步骤5即可。

评论没有加载,检查你的局域网

Cannot load comments. Check you network.

eat();

sleep();

code();

repeat();