将本地的项目推送到github上

好像还是不能用git在本地直接建一个repository,然后推送到github,这是把本地项目推送到github上已经建好的裤

…or create a new repository on the command line
echo "# learn_c" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:tuhooo/learn_c.git
git push -u origin master


…or push an existing repository from the command line
git remote add origin [email protected]:tuhooo/learn_c.git
git push -u origin master

猜你喜欢

转载自www.cnblogs.com/tuhooo/p/9279278.html