使用git工具将本地项目提交到github.com上

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013862108/article/details/86586057

git 提交我的myframe 到github.com

实战

现在 github 上创建 myframe 仓库

…or create a new repository on the command line

echo "# myframe" >> README.md

git init

git add README.md

git commit -m "first commit"

git remote add origin https://github.com/zhaozhiliang/myframe.git

git push -u origin master

…or push an existing repository from the command line

git remote add origin https://github.com/zhaozhiliang/myframe.git

git push -u origin master

…or import code from another repository

You can initialize this repository with code from a Subversion, Mercurial, or TFS project.

  612  echo "# designframe ">> README.md

  613  git init

  614  ls

  615  git add README.md 

  616  git commit -m "first commit"

  617  git remote add origin https://github.com/zhaozhiliang/designframe.git

  618  git push -u origin master

  619  git add *

  620  git commit -m "commit code"

  623  git push

猜你喜欢

转载自blog.csdn.net/u013862108/article/details/86586057