提交
This commit is contained in:
parent
1ab81ab24e
commit
4e057065f8
@ -1,79 +0,0 @@
|
||||
# Git
|
||||
|
||||
## Git 全局设置:
|
||||
|
||||
```shell
|
||||
git config --global user.name "wenyongda"
|
||||
git config --global user.email "bmdzh11713@163.com"
|
||||
```
|
||||
|
||||
## 创建 git 仓库:
|
||||
|
||||
```shell
|
||||
mkdir aaa
|
||||
cd aaa
|
||||
git init
|
||||
touch README.md
|
||||
git add README.md
|
||||
git commit -m "first commit"
|
||||
git remote add origin https://gitee.com/wenyongda/aaa.git
|
||||
git push -u origin master
|
||||
```
|
||||
|
||||
## 已有仓库
|
||||
|
||||
```shell
|
||||
cd existing_git_repo
|
||||
git remote add origin https://gitee.com/wenyongda/aaa.git
|
||||
git push -u origin master
|
||||
```
|
||||
|
||||
## 查看作者名称、作者邮箱
|
||||
|
||||
```shell
|
||||
git config user.name
|
||||
git config user.email
|
||||
git config --list
|
||||
```
|
||||
|
||||
<<<<<<< HEAD
|
||||
|
||||
|
||||
|
||||
=======
|
||||
## 解决Git提交失败,提示用户密码错误
|
||||
|
||||
remote: [31m[session-8b4b799a] wenyongda: Incorrect username or password (access token)[0m
|
||||
|
||||
首先查看C盘下gitconfig配置文件配置
|
||||
|
||||
```properties
|
||||
[core]
|
||||
autocrlf = true
|
||||
[user]
|
||||
name = 文永达
|
||||
email = bmdzh11713@163.com
|
||||
[difftool "sourcetree"]
|
||||
cmd = 'C:/Program Files/TortoiseSVN/bin/TortoiseMerge.exe' \"$LOCAL\" \"$REMOTE\"
|
||||
[mergetool "sourcetree"]
|
||||
cmd = 'C:/Program Files/TortoiseSVN/bin/TortoiseMerge.exe' -base:\"$BASE\" -mine:\"$LOCAL\" -theirs:\"$REMOTE\" -merged:\"$MERGED\"
|
||||
trustExitCode = true
|
||||
[credential "https://gitee.com"]
|
||||
provider = generic
|
||||
```
|
||||
|
||||
查看user下的password正不正确,如果没有设置转到控制面板
|
||||
|
||||
Windows下 `Win + R`运行输入`control`
|
||||
|
||||
用户账户 -> 凭据管理器 -> 管理 Windows 凭据 -> 普通凭据
|
||||
|
||||
编辑 git:https://gitee.com下的用户名和密码
|
||||
|
||||
如果没有手动添加,并在Git Bash中执行
|
||||
|
||||
```shell
|
||||
git config --global credential.helper wincred
|
||||
```
|
||||
>>>>>>> bf4c1065dd9efe32c81ae1b198aff70b22b4ad85
|
||||
|
||||
12
source/_posts/Intellij Platform.md
Normal file
12
source/_posts/Intellij Platform.md
Normal file
@ -0,0 +1,12 @@
|
||||
# JetBrains Rider
|
||||
|
||||
## 安装CodeGlance Pro后关闭原有的在滚动条悬停时显示代码
|
||||
|
||||
CodeGlancePro是一款用于在编辑器旁边显示代码缩略图的插件。
|
||||
|
||||
如果您想要把之前的代码预览隐藏,可以通过以下操作实现:
|
||||
|
||||
1. 打开JetBrains Rider,进入设置界面。可以通过快捷键`Ctrl+Alt+S`(Windows/Linux) 或 `Cmd+,`(Mac) 快速打开设置界面。
|
||||
2. 在“Editor”中,找到“General”选项卡。在这个选项卡中,找到“Appearance”,其中有一个“Show code lens on scrollbar hover”复选框。取消选中该复选框可隐藏在滚动条悬停时显示代码。
|
||||
|
||||

|
||||
Loading…
x
Reference in New Issue
Block a user