您的位置:首页 > 编程语言

利用git命令将本地项目托管到GitHub

2020-02-08 01:00 316 查看
  1. 打开自己的项目,在此处打开git bash  here
  2. 输入 git init 这时会在自己本地的文件夹中出现一个隐藏.git文件夹
  3. 输入 git add .
  4. 输入 git status
  5. 输入 git commit -m "这里是解释"
  6. 输入 git remote add origin https://github.com/yourname/yourproject 后面的url是你项目的url
  7. 输入 git pull origin master 拉取一下你GitHub上的文件
  8. 输入 git push -u origin master  向GitHub上提交你的项目

转载于:https://www.cnblogs.com/simplekinght/p/10088917.html

  • 点赞
  • 收藏
  • 分享
  • 文章举报
diaoxie5337 发布了0 篇原创文章 · 获赞 0 · 访问量 184 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: