📌  相关文章
📜  将新的本地 repo 推送到远程 github - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:28.382000             🧑  作者: Mango

代码示例1
# Create a new repository on the command line
//Just one note: if the repository doesn't exist in Github, first you will have to create it: https://help.github.com/articles/creating-a-new-repository/
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
 
# Push an existing repository from the command line
 
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master