https://avatars.githubusercontent.com/u/6274534

Git 的一些命令笔记

基础 克隆仓库 1 git clone <repo.git> 获取远程分支 master 并 merge 到当前分支 1 git pull origin master 创建本地分支,并切换到新创建分支 1 git checkout -b <new_branch> [origin/<start_branch>] 添加标签,增加 v1.0 的 tag 到某个提交上 1 git tag

Web 相关的安全性加强

apache: 1 2 ServerTokens Prod ServerSignature Off nginx.conf 1 2 3 http { server_tokens off; } php.ini 1 expose_php = Off codeigniter: httponly: 1 2 3 4 5 // ci/core/Input.php // ci/core/Security.php // ci/libraries/Session.php // ci/libraries/captcha.php setcookie($prefix.$name, $value, $expire, $path, $domain, $secure, TRUE); secure: 1