### 下載代碼
```
git clone https://github.com/MillZhang/work-desk.git
```
### 添加文件
```
git commit -m '注釋'
```
### 提交三步曲
```
git add
git pull
git commit -m ''
git push
```
### git status
> 查詢repo的狀態.
> git status -s: -s表示short, -s的輸出標記會有兩列,第一列是對staging區域而言,第二列是對working目錄而言.
### 查看當前協議
```
git remote -v
```
### https切換回ssh
```
git remote set-url origin git@github.com:MillZhang/work-desk.git
```
### 不輸入用戶名密碼提交指南
1. https切換回ssh
2. 生成ssh-key
> 1. 打開git,git config --global user.name "xxx"
> 2. ssh-keygen -t rsa -C "xxxx@qq.com"
> 3. 打開https://github.com/settings/keys 添加ssh-key
### 錯誤
1. `Changes not staged for commit`
```
git commit -am "" or git commit -m 'msg' -a
//-a 表示 all
```
2. git commit 進入 vim 如何操作?
> 按i然后寫入,寫入后按esc鍵退出編輯狀態,然后輸入:wq,回車即可
### 附錄
1. [常用命令](http://www.cnblogs.com/mengdd/p/4153773.html)
2. [git emoji](https://github.com/liuchengxu/git-commit-emoji-cn)
3. [無權限提交](http://blog.csdn.net/u014343528/article/details/48787221)
4. [ssh-key的生成](http://blog.csdn.net/qq_34291777/article/details/55052201?locationNum=1&fps=1)
<p class="over">Over!</p>
- 前端
- C1-Javascript
- H5圖片分塊和斷點續傳
- JavascriptPatterns[Stoyanstefanov]
- macotask和microtask
- 前端代碼生成器
- 跨域
- 頁面回到頂部滾動按鈕實現
- C2-CSS
- 瀏覽器的一些單位
- 盒模型
- 移動端判斷橫豎屏
- C3-框架
- ReactNative
- 開發環境搭建(安卓篇)
- Vue
- vue+pdfjs使用
- vue+typescript使用實踐
- vue+webpack3.x集成typescript
- Vue源碼3
- vue源碼分析1
- vue源碼分析2
- vue筆記
- C4-工具
- git
- Gitlab-CICD
- mock規則
- vscode-settings
- webpack自定義命令,切換代理地址
- 正則表達式
- 深入淺出webpack
- C5-Node
- express
- express源碼閱讀
- nightmare使用指南
- 爬蟲1.0
- C6-微信
- 微信
- C7-Canvas
- 基礎API
- 前端隨筆筆記
- 后端
- C1-Java
- shiro
- C2-Linux
- ffmpeg
- ITerm
- Linux
- MongoDB安裝
- MySql安裝
- Ngnix反向代理
- 常見錯誤
- 備忘
- mac
- 備忘-Work
- 備忘Link
- 服務器資源
- 教程
- Hexo個人博客搭建筆錄
- 文檔
- CSS編碼規范
- 前端編碼規范
- 隨筆
- 整理
- 正則
- 鏈接收藏
- 面試
- CodeWars題庫
- CodeWars題庫(二)
- Java社招面試題
- Java面試
- Web面試
- 前端筆試題
- 筆試題