putty完全使用手册--多窗口---git提交---连接数据库--自动日志显示

01 putty dev 192.168.3.38

02 cd /home/gongfu/tripb/cranedev
02.1 git status
git add
git commit
git push origin master

03 cd /home/gongfu/tripb/master
git commit //先提交自己的,到临时库,再把其他用户提交的.拉取下来,合并
git pull 更新代码
git push origin master //一起提交


04 更新到 monkey, mantis 正式测试环境 数据库 tripb_test
cd /home/gongfu/tripb/monkey
git pull

su mantis (mantis)
cd ~
cd /home/mantis/tripb
git pull

写入备注
ctrl+O 写入
ctrl+x 离开

切换到 gongfu用户 su gongfu 密码gf123

git diff 双击复制,右键粘贴 查看不同
push提交 pull 用户名 密码 zxc xiaohao16

=================
commit 到我的临时库之后.--务必把远程库 pull下来和临时库合并(远程库有可能有新的修改)
合并没有冲突--在push提交
有冲突解决冲突--冲突代码会自动--写入到代码中
03修改好代码后
04 git add web/js/xxx.js 需要add
05


开启新窗口
01 master窗口 ---本地环境
02mysql窗口
03mantis窗口 --测试服务器
04logs窗口---日志管理
05bash窗口---

ctrl+a +(1,2,3,4切换到对应的窗口)
(*)代表当前所在的窗口

连接数据库

原文地址:https://www.cnblogs.com/bj-tony/p/5606320.html