From 0b0750b6e3058f9368cefa9d333b12a843718fa1 Mon Sep 17 00:00:00 2001 From: yewuya <32785496+yewuya0206@users.noreply.github.com> Date: Sat, 17 Apr 2021 22:56:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E5=90=88git=20=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git 修改已提交的commit.md | 13 ---------- git 常用指令.md | 44 ++++++++++++++++++++++++++++++++++ git使用规范.md | 6 ----- git常用命令.md | 12 ---------- git生产ssh密钥.md | 10 -------- git设置代理.md | 13 ---------- v2ray install/qv2ray/qv2ray.md | 6 ----- 7 files changed, 44 insertions(+), 60 deletions(-) delete mode 100644 git 修改已提交的commit.md create mode 100644 git 常用指令.md delete mode 100644 git使用规范.md delete mode 100644 git常用命令.md delete mode 100644 git生产ssh密钥.md delete mode 100644 git设置代理.md delete mode 100644 v2ray install/qv2ray/qv2ray.md diff --git a/git 修改已提交的commit.md b/git 修改已提交的commit.md deleted file mode 100644 index a074696..0000000 --- a/git 修改已提交的commit.md +++ /dev/null @@ -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 #强制提交 -``` - diff --git a/git 常用指令.md b/git 常用指令.md new file mode 100644 index 0000000..b927ea5 --- /dev/null +++ b/git 常用指令.md @@ -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 #强制提交 +``` + + + diff --git a/git使用规范.md b/git使用规范.md deleted file mode 100644 index f1e8a0d..0000000 --- a/git使用规范.md +++ /dev/null @@ -1,6 +0,0 @@ -git使用规范 - - - - - diff --git a/git常用命令.md b/git常用命令.md deleted file mode 100644 index 361486e..0000000 --- a/git常用命令.md +++ /dev/null @@ -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 //添加新的远程服务器 -``` - diff --git a/git生产ssh密钥.md b/git生产ssh密钥.md deleted file mode 100644 index 963253d..0000000 --- a/git生产ssh密钥.md +++ /dev/null @@ -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" #生成密钥 -``` - diff --git a/git设置代理.md b/git设置代理.md deleted file mode 100644 index ce986d6..0000000 --- a/git设置代理.md +++ /dev/null @@ -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' -``` - diff --git a/v2ray install/qv2ray/qv2ray.md b/v2ray install/qv2ray/qv2ray.md deleted file mode 100644 index c0bbf59..0000000 --- a/v2ray install/qv2ray/qv2ray.md +++ /dev/null @@ -1,6 +0,0 @@ -* Register an account at this site - https://j01.space/waf/rAOIEGWKZSRb2iwU2 -* This grouping is a subscription -* Test Latency -* -