git文件提交到github

1.git add <file>
2.git commit -m "备注"
3.git remote add origin [email protected]:<用户名>/<仓库名>.git
4.git push -u origin master
5.如果出现:fatal: remote origin already exists.
则输入:git remote rm origin
再开始步骤3

猜你喜欢

转载自blog.csdn.net/topqy/article/details/88572719