一、安装Git
Git 目前支持 Linux/Unix、Solaris、Mac和 Windows 平台上运行。
Git 各平台安装包下载地址为:http://git-scm.com/downloads
二、配置Git的config文件
打开终端,输入如下指令
git config --global user.name "你的用户名"
git config --global user.email "你的用户邮箱"
三、打开pycharm,从Git中拉取工程后,打开工程
四、进入底部Terminal,输入如下指令
git checkout dev # dev是你的分支名称,如果只有一个分支,该步骤省略
git status # 查看当前所处分支
git pull # 拉取最新代码
pwd # 查看当前分支代码所在本地路径
git add xxx # xxx是你需要提交的文件所在本地路径
git commit -m"提交文件附带的文字说明"
git push # 将更新推送到服务器上
五、Git常用命令
git stash 保存本地修改