## 合并某幾個commit到其他分支
`git cherry-pick <commit id>`
`git cherry-pick 4e934f4`
`git cherry-pick <start-commit-id>..<end-commit-id>`左開右閉
`git cherry-pick <start-commit-id>^..<end-commit-id>`閉區間
`git cherry-pick 4e934f4^ .. 2578705`
## gitlab服務器系統重裝報錯

原因: 服務器登錄標識證書記錄下來,下次登錄時會去比對之前的記錄,由于系統重裝標識變了導致不能繼續登錄
方案:`ssh-keygen -R 192.168.0.40`
## 添加ssh
`ssh-keygen -t rsa -C "youremail@example.com"`
## 本地commit多次的倉庫關聯新的遠程倉庫報錯
`git pull origin master --allow-unrelated-histories`
## 忽略已經提交過的文件
```
git?update-index?--assume-unchanged?test/test.txt
```
## 合并兩個不同的開始提交的倉庫,會報錯`refusing to merge unrelated histories`
`git pull origin master --allow-unrelated-histories`
- php
- 安全
- php7
- 特性
- 編譯安裝
- 源碼整體框架
- 基本變量
- thinkphp3.2.3
- thinkphp5.0
- thinkphp6.0
- laravel
- 配置
- 路由
- artisan控制臺
- eloquent
- tinker
- composer
- 加密解密
- 小知識點
- 數組
- string
- 代碼簡潔之道
- 編譯
- 語法糖
- lumen
- smarty
- 錯題集
- 算法及數據結構
- 線性表結構
- 插入排序
- 冒泡排序
- 數據庫
- mysql
- oracle
- PostgreSQL
- redis
- sqlserver
- 前端
- 備忘
- js
- nodejs
- vue
- css
- electron
- vue
- 語法糖
- colorui使用筆記
- 微信小程序
- 操作系統
- windows
- bat
- 快捷鍵
- linux
- sed
- 問題解決
- git
- docker
- docker-compose
- 正則表達式
- ps
- lua
- 協議相關
- 問題思索
- Golang
- 測試
- 讀取和寫入json配置文件
- 類
- 接口
- mod
- gin
- fyne
- 禪道二次開發
- 服務
- apache
- 漏洞配置
- http server優化
- nginx
- 安裝
- 面試題庫
- freeswitch