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                 不需要每次输入用户名和密码

posted on 2016-11-03 19:38  啼咦嗯ten  阅读(117)  评论(0编辑  收藏  举报