代码版本控制:git使用
1. https://github.com/ 注册账号 2. 点击 Start a project 3. 4. 5. Clone or download 6. 安装git 7. cd 到创建项目的目录 8. git clone https://github.com/zhangxiaochuZXC/test007.git 9. 创建test.py文件 10. git config user.name 'wsw' git config user.email '邮箱' Git add . Git commit -am ‘project’(添加注释) 14. 推送文件 Git push 15. 长期存储密码 git config --global credential.helper store 16. 下载文件 git pull 17. 解决冲突 git stash git pull origin master git stash pop 清除自己写的内容 git reset FETCH_HEAD 18. 标签 git tag -a 标签名 -m ‘标签描述’ 例: git tag -a v1.0 -m 'version 1.0' git push origin v1.0 19. 分支 查看当前分支 git branch