git项目文件夹右击: git bash here
#初始化本地仓库
git init
#加到缓存
git add .
#加到本地仓库
git commit -m "青山智慧基建项目"
#添加远程仓库地址
git remote add origin https://senscape.online:20443/aid/jijian.git
git push origin master
git
git branch
git checkout dev
git pull
git add .
git remote add origin https://senscape.online:20443/aid/QSLocal_prod.git
git push -u origin master
git commit -m "初步增加宁夏数据增删改查接口"
[git push origin -u dev]
git push
[最新]
cd D:\xiangmu\luosida_xian右键:git bash
#git clone ssh://git@192.168.0.92:222/deepening_application/qingshan/jijian_server.git
cd jijian_server/
#git checkout origin/jijian_server_release_v1.0.0
git checkout jijian_server_release_v1.0.0
git branch -a
#git pull
git add .
git commit -m 'first-commit'
git push
git比较两个分支之间差异:
git diff branch1 branch2 --stat
例如:git diff origin/dev origin/dev_phase2 --stat
mac-下载代码: git clone -b dev http://192.168.0.7/application-development-group/qingshan_jijian_server.git