create a new repository
echo "# 项目名" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/lhongyan/asdfasfasf.git
git push -u origin master
push an existing repository
git remote add origin https://github.com/lhongyan/asdfasfasf.git
git push -u origin master
网友评论