整合git 相关内容
This commit is contained in:
parent
dfa7a807d9
commit
0b0750b6e3
@ -1,13 +0,0 @@
|
|||||||
# git 修改已提交的commit
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```sh
|
|
||||||
git rebase -i HEAD~1 #修改commit HEAD~1为commit的数量
|
|
||||||
#在打开的文件中将需要修改的commit前的pick改为edit,并保存关闭文件
|
|
||||||
|
|
||||||
git commit --amend #修改commit内容
|
|
||||||
git rebase --continue #完成内容修改
|
|
||||||
git push --force origin #强制提交
|
|
||||||
```
|
|
||||||
|
|
||||||
44
git 常用指令.md
Normal file
44
git 常用指令.md
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
# git 常用指令
|
||||||
|
|
||||||
|
#### 基础常用指令
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git config --global --unset http.proxy//取消http代理
|
||||||
|
git config --global --unset https.proxy//取消https代理
|
||||||
|
git add . // 添加所有修改文件
|
||||||
|
git commit -am “” //添加所有修改文件的commit
|
||||||
|
git push origin master //上传代码到服务器
|
||||||
|
git remote rm origin //删除所有远程服务器
|
||||||
|
git remote add origin url //添加新的远程服务器
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 生成密钥
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git config --global user.name "yewuya" #配置用户名
|
||||||
|
git config --global user.email "yewuya0206@gmail.com" #配置邮箱
|
||||||
|
ssh-keygen -t rsa -C "yewuya0206@gmail.com" #生成密钥
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 设置代理
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git config --global https.proxy http://127.0.0.1:7890
|
||||||
|
git config --global https.proxy https://127.0.0.1:7890
|
||||||
|
git config --global http.proxy 'socks5://127.0.0.1:7890'
|
||||||
|
git config --global https.proxy 'socks5://127.0.0.1:7890'
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 修改已提交的commit
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git rebase -i HEAD~1 #修改commit HEAD~1为commit的数量
|
||||||
|
#在打开的文件中将需要修改的commit前的pick改为edit,并保存关闭文件
|
||||||
|
|
||||||
|
git commit --amend #修改commit内容
|
||||||
|
git rebase --continue #完成内容修改
|
||||||
|
git push --force origin #强制提交
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
git使用规范
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
12
git常用命令.md
12
git常用命令.md
@ -1,12 +0,0 @@
|
|||||||
# git常用命令
|
|
||||||
|
|
||||||
```
|
|
||||||
git config --global --unset http.proxy//取消http代理
|
|
||||||
git config --global --unset https.proxy//取消https代理
|
|
||||||
git add . // 添加所有修改文件
|
|
||||||
git commit -am “” //添加所有修改文件的commit
|
|
||||||
git push origin master //上传代码到服务器
|
|
||||||
git remote rm origin //删除所有远程服务器
|
|
||||||
git remote add origin url //添加新的远程服务器
|
|
||||||
```
|
|
||||||
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
# git生产ssh密钥
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```sh
|
|
||||||
git config --global user.name "yewuya" #配置用户名
|
|
||||||
git config --global user.email "yewuya0206@gmail.com" #配置邮箱
|
|
||||||
ssh-keygen -t rsa -C "yewuya0206@gmail.com" #生成密钥
|
|
||||||
```
|
|
||||||
|
|
||||||
13
git设置代理.md
13
git设置代理.md
@ -1,13 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
# git设置代理
|
|
||||||
|
|
||||||
* Windows下Clash设置代理
|
|
||||||
|
|
||||||
```sh
|
|
||||||
git config --global https.proxy http://127.0.0.1:7890
|
|
||||||
git config --global https.proxy https://127.0.0.1:7890
|
|
||||||
git config --global http.proxy 'socks5://127.0.0.1:7890'
|
|
||||||
git config --global https.proxy 'socks5://127.0.0.1:7890'
|
|
||||||
```
|
|
||||||
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
* Register an account at this site
|
|
||||||
https://j01.space/waf/rAOIEGWKZSRb2iwU2
|
|
||||||
* This grouping is a subscription
|
|
||||||
* Test Latency
|
|
||||||
*
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user