git push文件到远程github或者gitlab
Posted bigbee
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git push文件到远程github或者gitlab相关的知识,希望对你有一定的参考价值。
1 Git global setup 2 3 git config --global user.name "luozeng" 4 git config --global user.email "[email protected]" 5 6 Create a new repository 7 8 git clone https://gitlab.com/luozeng/blog.git 9 cd blog 10 touch README.md 11 git add README.md 12 git commit -m "add README" 13 git push -u origin master 14 15 Existing folder 16 17 cd existing_folder 18 git init 19 git remote add origin https://gitlab.com/luozeng/blog.git 20 git add . 21 git commit -m "Initial commit" 22 git push -u origin master 23 24 Existing Git repository 25 26 cd existing_repo 27 git remote rename origin old-origin 28 git remote add origin https://gitlab.com/luozeng/blog.git 29 git push -u origin --all 30 git push -u origin --tags
以上是关于git push文件到远程github或者gitlab的主要内容,如果未能解决你的问题,请参考以下文章