1.将本地代码推送到远程空仓库
设置远程仓库的地址
git remote set-url origin https://codeup.aliyun.com/123456/sph/sph_crawler.git
推送并绑定master分支
git push -u origin master
强制推送 覆盖远程
git push -f origin master
常用的gitignore文件
# Python
# 字节编译的 Python 文件
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
# 虚拟环境
venv/
env/
.venv/
ENV/
# 编辑器
# VS Code
.vscode/
*.code-workspace
# PyCharm
.idea/
*.iml
*.ipr
*.iws
# 其他编辑器
*.swp
*.swo
*~
.DS_Store
# 日志目录
logs/
*.log
# 环境配置文件
.env
.env.example
# 其他
*.egg-info/
dist/
build/
.pytest_cache/
.coverage
htmlcov/