python 提交项目到github

Git 全局设置

git config --global user.name "username"

git config --global user.email "github邮箱地址"

 

创建一个新仓库

git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/xxx/xxxx.git
git push -u origin master

推送现有文件夹

cd existing_folder

git init

git remote add origin https://xxxxxx.git

git add .

git commit -m "Initial commit"

git push -u origin master

 

推送现有的Git仓库

cd 文件夹

git remote rename origin old-origin

git remote add origin https://github.com/xxx/xxxx.git

git push -u origin --all

git push -u origin --tags

 

posted @ 2020-05-27 17:11  汪丛兴  阅读(18)  评论(0编辑  收藏  举报