1. 程式人生 > >【常用指令】git+伺服器+資料庫

【常用指令】git+伺服器+資料庫

git日程操作  伺服器常用操作

①同步master

    git pull origin master

②建立分支

    git checkout -b 分支名

③常規操作

    git diff

    git add 檔名

    git commit -m "版本說明"

④push操作

git push -u origin 分支名

⑤發起merge請求


 

伺服器 常用指令

①看日誌

    tailf ".../.../localhost.log"

②看catalina.out

    tailf "../../catalina.out"

③列印log

    LOGGER.error("=====起點1.1.1.1======{}", xxx); // TODO 刪除

④切換到專案目錄

    cd /opt/../../ROOT/WEB-INF/lib
  ........