安装git bash ,首先设置参数
设置email git config --global user.email daisy.hu@xxx.com
设置user git config --global user.name"Daisy,Hu"
git config --globalhttp.sslVerify false
查看当前user vim ~/.gitconfig
在本地创建文件夹后
将远端服务器上仓库克隆下来 git clone https://asdstash.isus.xxx.com/scm/vs/storage.git
eg:
cd ecs/storage/
下拉代码 git pull
从主分支上切换到分支 git checkout bugfix-STORAGE-17160-use-Script-to-grnerage-st-query
git status
将当前工作现场隐藏起来,等以后恢复现场后继续工作 git stash
git status
git checkout bugfix-STORAGE-17160-use-Script-to-grnerage-st-query
clear
现在从intelij IDEA 编写代码修复bug
修复完成后,将文件上传到远端合并发布
git commit -a -m "config ORANGE_A_B_C"
git pull
git push