git简易使用


 安装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




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值