日常命令

172 阅读1分钟

查找关键字

find . -name 'filename' -exec grep -Hn 'pattern' {} \;

git 合并

分支改名
$ git branch -m oldname newname
$ git push origin :oldname
$ git push --set-upstream origin newname 
分支合并
$ git merge master
$ git push