![git使用学习 git使用学习](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
windows系统需要安装git,mac系统自带git
git相关命令:
git clone https://git.coding.net/tenchina/wangteng_python1.git 把项目仓库地址下载到本地
git add a.py 添加文件
git commit -m '备注' 提交到本地代码库 必须-m参数
git push 从本地代码库推送到git远程代码库
git pull 在服务器上修改文件后同步到本地,更新本地代码
git status 查看当前目录的文件状态
git rm 删除一个文件
git config --global credential.helper store 不需要每次输入用户名和密码