Skip to content

Commit

Permalink
git status 显示中文问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 5, 2016
1 parent fe352af commit 9773dd9
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions other/Git常用命令清单.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
- [利用commit关闭一个issue](#利用commit关闭一个issue)
- [查看某个文件历史](#查看某个文件历史)
- [其它](#其它)
- [报错](#报错)
- [报错问题解决](#报错问题解决)

## 参考资料

Expand Down Expand Up @@ -204,6 +204,7 @@ $ git fetch -p
`git init` #初始化

### status

`git status` #获取状态

### add
Expand Down Expand Up @@ -650,12 +651,15 @@ git status # 获取当前的状态,非常有用,因为git会提示接下来
```


## 报错
## 报错问题解决

**1. `git fatal: protocol error: bad line length character: No s`**

解决办法:更换remote地址为 `http/https`

1. `git fatal: protocol error: bad line length character: No s` 解决办法:更换remote地址为 `http/https`
2. `The requested URL returned error: 403 Forbidden while accessing`解决github push错误的办法
**2. `The requested URL returned error: 403 Forbidden while accessing`**

解决方案
解决github push错误的办法

```shell
#vim 编辑器打开 当前项目中的config文件
Expand All @@ -669,3 +673,17 @@ vim .git/config
[remote "origin"]
url = https://[email protected]/jaywcjlove/example.git
```

**3. git status 显示中文问题**

在查看状态的时候 git status 如果是中文就下市下面的情况

```bash
\344\272\247\345\223\201\351\234\200\346\261\202
```

解决这个问题方法是:

```bash
git config --global core.quotepath false
```

0 comments on commit 9773dd9

Please sign in to comment.