效率工具

1. windows命令行代理

set http_proxy=http://username:password@proxy.domain.com:8080
set https_proxy=https://username:password@proxy.domain.com:8080

2. git代理

# 配置代理
git config --global http.proxy http://username:password@proxy.domain.com:8080
git config --global https.proxy https://username:password@proxy.domain.com:8080
git config --global http.sslverify false

# git config --global https.proxy http://127.0.0.1:7890
# git config --global https.proxy http://127.0.0.1:7890

# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
# 指定网站代理
git config --global http.https://github.com.proxy http://username:password@proxy.domain.com:8080
# 取消代理  
git config --global --unset http.https://github.com.proxy

也可以直接编辑~/.gitconfig文件

3. windows配置beyondcompare作为gitdiff

修改.gitconfig配置文件

[diff] 
    tool = bc4 
[difftool] 
    prompt = false 
[difftool "bc4"]
    cmd = "\"D:/Beyond Compare/bcomp.exe\" \"$LOCAL\" \"$REMOTE\"" 
[merge]
    tool = bc4 [mergetool] prompt = false 
[mergetool "bc4"] 
    cmd = "\"D:/Beyond Compare/bcomp.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"" 
    trustExitCode = true

4. 删除重复文件

# 预览模式
Get-ChildItem -Path "D:\document" -File -Recurse | Where-Object {$_.BaseName -match '^.+ \d{1,2}<h1>1. windows命令行代理</h1>
<pre><code class="language-dos">set http_proxy=http://username:password@proxy.domain.com:8080
set https_proxy=https://username:password@proxy.domain.com:8080
</code></pre>
<h1>2. git代理</h1>
<pre><code class="language-dos"># 配置代理
git config --global http.proxy http://username:password@proxy.domain.com:8080
git config --global https.proxy https://username:password@proxy.domain.com:8080
git config --global http.sslverify false

# git config --global https.proxy http://127.0.0.1:7890
# git config --global https.proxy http://127.0.0.1:7890

# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
# 指定网站代理
git config --global http.https://github.com.proxy http://username:password@proxy.domain.com:8080
# 取消代理  
git config --global --unset http.https://github.com.proxy
</code></pre>
<p>也可以直接编辑~/.gitconfig文件</p>
<h1>3. windows配置beyondcompare作为gitdiff</h1>
<p>修改.gitconfig配置文件</p>
<pre><code class="language-text">[diff] 
    tool = bc4 
[difftool] 
    prompt = false 
[difftool &quot;bc4&quot;]
    cmd = &quot;\&quot;D:/Beyond Compare/bcomp.exe\&quot; \&quot;$LOCAL\&quot; \&quot;$REMOTE\&quot;&quot; 
[merge]
    tool = bc4 [mergetool] prompt = false 
[mergetool &quot;bc4&quot;] 
    cmd = &quot;\&quot;D:/Beyond Compare/bcomp.exe\&quot; \&quot;$LOCAL\&quot; \&quot;$REMOTE\&quot; \&quot;$BASE\&quot; \&quot;$MERGED\&quot;&quot; 
    trustExitCode = true
</code></pre>
<h1>4. 删除重复文件</h1>
<pre><code class="language-poweshell"># 预览模式
Get-ChildItem -Path &quot;D:\document&quot; -File -Recurse | Where-Object {$_.BaseName -match &#39;^.+ \d{1,2}<article>
    <header>
        <h1>效率工具</h1>
        <time datetime="2025-09-17T13:31:12.000Z">2025年9月17日</time>
        <div class="tags">
            
        </div>
    </header>
    <section class="content">
        <h1>1. windows命令行代理</h1>
<pre><code class="language-dos">set http_proxy=http://username:password@proxy.domain.com:8080
set https_proxy=https://username:password@proxy.domain.com:8080
</code></pre>
<h1>2. git代理</h1>
<pre><code class="language-dos"># 配置代理
git config --global http.proxy http://username:password@proxy.domain.com:8080
git config --global https.proxy https://username:password@proxy.domain.com:8080
git config --global http.sslverify false

# git config --global https.proxy http://127.0.0.1:7890
# git config --global https.proxy http://127.0.0.1:7890

# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
# 指定网站代理
git config --global http.https://github.com.proxy http://username:password@proxy.domain.com:8080
# 取消代理  
git config --global --unset http.https://github.com.proxy
</code></pre>
<p>也可以直接编辑~/.gitconfig文件</p>
<h1>3. windows配置beyondcompare作为gitdiff</h1>
<p>修改.gitconfig配置文件</p>
<pre><code class="language-text">[diff] 
    tool = bc4 
[difftool] 
    prompt = false 
[difftool &quot;bc4&quot;]
    cmd = &quot;\&quot;D:/Beyond Compare/bcomp.exe\&quot; \&quot;$LOCAL\&quot; \&quot;$REMOTE\&quot;&quot; 
[merge]
    tool = bc4 [mergetool] prompt = false 
[mergetool &quot;bc4&quot;] 
    cmd = &quot;\&quot;D:/Beyond Compare/bcomp.exe\&quot; \&quot;$LOCAL\&quot; \&quot;$REMOTE\&quot; \&quot;$BASE\&quot; \&quot;$MERGED\&quot;&quot; 
    trustExitCode = true
</code></pre>
<h1>4. 删除重复文件</h1>
<pre><code class="language-poweshell"># 预览模式
Get-ChildItem -Path &quot;D:\document&quot; -File -Recurse | Where-Object {$_.BaseName -match &#39;^.+ \d{1,2}&lt;h1&gt;1. windows命令行代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;set http_proxy=http://username:password@proxy.domain.com:8080
set https_proxy=https://username:password@proxy.domain.com:8080
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;2. git代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;# 配置代理
git config --global http.proxy http://username:password@proxy.domain.com:8080
git config --global https.proxy https://username:password@proxy.domain.com:8080
git config --global http.sslverify false

# git config --global https.proxy http://127.0.0.1:7890
# git config --global https.proxy http://127.0.0.1:7890

# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
# 指定网站代理
git config --global http.https://github.com.proxy http://username:password@proxy.domain.com:8080
# 取消代理  
git config --global --unset http.https://github.com.proxy
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;也可以直接编辑~/.gitconfig文件&lt;/p&gt;
&lt;h1&gt;3. windows配置beyondcompare作为gitdiff&lt;/h1&gt;
&lt;p&gt;修改.gitconfig配置文件&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;[diff] 
    tool = bc4 
[difftool] 
    prompt = false 
[difftool &amp;quot;bc4&amp;quot;]
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot;&amp;quot; 
[merge]
    tool = bc4 [mergetool] prompt = false 
[mergetool &amp;quot;bc4&amp;quot;] 
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot; \&amp;quot;$BASE\&amp;quot; \&amp;quot;$MERGED\&amp;quot;&amp;quot; 
    trustExitCode = true
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;4. 删除重复文件&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-poweshell&quot;&gt;# 预览模式
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Select-Object FullName

# 实际删除(确认无误后使用)
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Remove-Item -Force
&lt;/code&gt;&lt;/pre&gt;
#39;} | Select-Object FullName

# 实际删除(确认无误后使用)
Get-ChildItem -Path &quot;D:\document&quot; -File -Recurse | Where-Object {$_.BaseName -match &#39;^.+ \d{1,2}&lt;h1&gt;1. windows命令行代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;set http_proxy=http://username:password@proxy.domain.com:8080
set https_proxy=https://username:password@proxy.domain.com:8080
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;2. git代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;# 配置代理
git config --global http.proxy http://username:password@proxy.domain.com:8080
git config --global https.proxy https://username:password@proxy.domain.com:8080
git config --global http.sslverify false

# git config --global https.proxy http://127.0.0.1:7890
# git config --global https.proxy http://127.0.0.1:7890

# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
# 指定网站代理
git config --global http.https://github.com.proxy http://username:password@proxy.domain.com:8080
# 取消代理  
git config --global --unset http.https://github.com.proxy
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;也可以直接编辑~/.gitconfig文件&lt;/p&gt;
&lt;h1&gt;3. windows配置beyondcompare作为gitdiff&lt;/h1&gt;
&lt;p&gt;修改.gitconfig配置文件&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;[diff] 
    tool = bc4 
[difftool] 
    prompt = false 
[difftool &amp;quot;bc4&amp;quot;]
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot;&amp;quot; 
[merge]
    tool = bc4 [mergetool] prompt = false 
[mergetool &amp;quot;bc4&amp;quot;] 
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot; \&amp;quot;$BASE\&amp;quot; \&amp;quot;$MERGED\&amp;quot;&amp;quot; 
    trustExitCode = true
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;4. 删除重复文件&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-poweshell&quot;&gt;# 预览模式
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Select-Object FullName

# 实际删除(确认无误后使用)
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Remove-Item -Force
&lt;/code&gt;&lt;/pre&gt;
#39;} | Remove-Item -Force
</code></pre>

    </section>
</article>amp;#39;} | Select-Object FullName

# 实际删除(确认无误后使用)
Get-ChildItem -Path &quot;D:\document&quot; -File -Recurse | Where-Object {$_.BaseName -match &#39;^.+ \d{1,2}<article>
    <header>
        <h1>效率工具</h1>
        <time datetime="2025-09-17T13:31:12.000Z">2025年9月17日</time>
        <div class="tags">
            
        </div>
    </header>
    <section class="content">
        <h1>1. windows命令行代理</h1>
<pre><code class="language-dos">set http_proxy=http://username:password@proxy.domain.com:8080
set https_proxy=https://username:password@proxy.domain.com:8080
</code></pre>
<h1>2. git代理</h1>
<pre><code class="language-dos"># 配置代理
git config --global http.proxy http://username:password@proxy.domain.com:8080
git config --global https.proxy https://username:password@proxy.domain.com:8080
git config --global http.sslverify false

# git config --global https.proxy http://127.0.0.1:7890
# git config --global https.proxy http://127.0.0.1:7890

# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
# 指定网站代理
git config --global http.https://github.com.proxy http://username:password@proxy.domain.com:8080
# 取消代理  
git config --global --unset http.https://github.com.proxy
</code></pre>
<p>也可以直接编辑~/.gitconfig文件</p>
<h1>3. windows配置beyondcompare作为gitdiff</h1>
<p>修改.gitconfig配置文件</p>
<pre><code class="language-text">[diff] 
    tool = bc4 
[difftool] 
    prompt = false 
[difftool &quot;bc4&quot;]
    cmd = &quot;\&quot;D:/Beyond Compare/bcomp.exe\&quot; \&quot;$LOCAL\&quot; \&quot;$REMOTE\&quot;&quot; 
[merge]
    tool = bc4 [mergetool] prompt = false 
[mergetool &quot;bc4&quot;] 
    cmd = &quot;\&quot;D:/Beyond Compare/bcomp.exe\&quot; \&quot;$LOCAL\&quot; \&quot;$REMOTE\&quot; \&quot;$BASE\&quot; \&quot;$MERGED\&quot;&quot; 
    trustExitCode = true
</code></pre>
<h1>4. 删除重复文件</h1>
<pre><code class="language-poweshell"># 预览模式
Get-ChildItem -Path &quot;D:\document&quot; -File -Recurse | Where-Object {$_.BaseName -match &#39;^.+ \d{1,2}&lt;h1&gt;1. windows命令行代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;set http_proxy=http://username:password@proxy.domain.com:8080
set https_proxy=https://username:password@proxy.domain.com:8080
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;2. git代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;# 配置代理
git config --global http.proxy http://username:password@proxy.domain.com:8080
git config --global https.proxy https://username:password@proxy.domain.com:8080
git config --global http.sslverify false

# git config --global https.proxy http://127.0.0.1:7890
# git config --global https.proxy http://127.0.0.1:7890

# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
# 指定网站代理
git config --global http.https://github.com.proxy http://username:password@proxy.domain.com:8080
# 取消代理  
git config --global --unset http.https://github.com.proxy
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;也可以直接编辑~/.gitconfig文件&lt;/p&gt;
&lt;h1&gt;3. windows配置beyondcompare作为gitdiff&lt;/h1&gt;
&lt;p&gt;修改.gitconfig配置文件&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;[diff] 
    tool = bc4 
[difftool] 
    prompt = false 
[difftool &amp;quot;bc4&amp;quot;]
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot;&amp;quot; 
[merge]
    tool = bc4 [mergetool] prompt = false 
[mergetool &amp;quot;bc4&amp;quot;] 
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot; \&amp;quot;$BASE\&amp;quot; \&amp;quot;$MERGED\&amp;quot;&amp;quot; 
    trustExitCode = true
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;4. 删除重复文件&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-poweshell&quot;&gt;# 预览模式
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Select-Object FullName

# 实际删除(确认无误后使用)
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Remove-Item -Force
&lt;/code&gt;&lt;/pre&gt;
#39;} | Select-Object FullName

# 实际删除(确认无误后使用)
Get-ChildItem -Path &quot;D:\document&quot; -File -Recurse | Where-Object {$_.BaseName -match &#39;^.+ \d{1,2}&lt;h1&gt;1. windows命令行代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;set http_proxy=http://username:password@proxy.domain.com:8080
set https_proxy=https://username:password@proxy.domain.com:8080
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;2. git代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;# 配置代理
git config --global http.proxy http://username:password@proxy.domain.com:8080
git config --global https.proxy https://username:password@proxy.domain.com:8080
git config --global http.sslverify false

# git config --global https.proxy http://127.0.0.1:7890
# git config --global https.proxy http://127.0.0.1:7890

# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
# 指定网站代理
git config --global http.https://github.com.proxy http://username:password@proxy.domain.com:8080
# 取消代理  
git config --global --unset http.https://github.com.proxy
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;也可以直接编辑~/.gitconfig文件&lt;/p&gt;
&lt;h1&gt;3. windows配置beyondcompare作为gitdiff&lt;/h1&gt;
&lt;p&gt;修改.gitconfig配置文件&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;[diff] 
    tool = bc4 
[difftool] 
    prompt = false 
[difftool &amp;quot;bc4&amp;quot;]
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot;&amp;quot; 
[merge]
    tool = bc4 [mergetool] prompt = false 
[mergetool &amp;quot;bc4&amp;quot;] 
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot; \&amp;quot;$BASE\&amp;quot; \&amp;quot;$MERGED\&amp;quot;&amp;quot; 
    trustExitCode = true
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;4. 删除重复文件&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-poweshell&quot;&gt;# 预览模式
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Select-Object FullName

# 实际删除(确认无误后使用)
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Remove-Item -Force
&lt;/code&gt;&lt;/pre&gt;
#39;} | Remove-Item -Force
</code></pre>

    </section>
</article>amp;#39;} | Remove-Item -Force
</code></pre>
#39;} | Select-Object FullName

# 实际删除(确认无误后使用)
Get-ChildItem -Path "D:\document" -File -Recurse | Where-Object {$_.BaseName -match '^.+ \d{1,2}<h1>1. windows命令行代理</h1>
<pre><code class="language-dos">set http_proxy=http://username:password@proxy.domain.com:8080
set https_proxy=https://username:password@proxy.domain.com:8080
</code></pre>
<h1>2. git代理</h1>
<pre><code class="language-dos"># 配置代理
git config --global http.proxy http://username:password@proxy.domain.com:8080
git config --global https.proxy https://username:password@proxy.domain.com:8080
git config --global http.sslverify false

# git config --global https.proxy http://127.0.0.1:7890
# git config --global https.proxy http://127.0.0.1:7890

# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
# 指定网站代理
git config --global http.https://github.com.proxy http://username:password@proxy.domain.com:8080
# 取消代理  
git config --global --unset http.https://github.com.proxy
</code></pre>
<p>也可以直接编辑~/.gitconfig文件</p>
<h1>3. windows配置beyondcompare作为gitdiff</h1>
<p>修改.gitconfig配置文件</p>
<pre><code class="language-text">[diff] 
    tool = bc4 
[difftool] 
    prompt = false 
[difftool &quot;bc4&quot;]
    cmd = &quot;\&quot;D:/Beyond Compare/bcomp.exe\&quot; \&quot;$LOCAL\&quot; \&quot;$REMOTE\&quot;&quot; 
[merge]
    tool = bc4 [mergetool] prompt = false 
[mergetool &quot;bc4&quot;] 
    cmd = &quot;\&quot;D:/Beyond Compare/bcomp.exe\&quot; \&quot;$LOCAL\&quot; \&quot;$REMOTE\&quot; \&quot;$BASE\&quot; \&quot;$MERGED\&quot;&quot; 
    trustExitCode = true
</code></pre>
<h1>4. 删除重复文件</h1>
<pre><code class="language-poweshell"># 预览模式
Get-ChildItem -Path &quot;D:\document&quot; -File -Recurse | Where-Object {$_.BaseName -match &#39;^.+ \d{1,2}<article>
    <header>
        <h1>效率工具</h1>
        <time datetime="2025-09-17T13:31:12.000Z">2025年9月17日</time>
        <div class="tags">
            
        </div>
    </header>
    <section class="content">
        <h1>1. windows命令行代理</h1>
<pre><code class="language-dos">set http_proxy=http://username:password@proxy.domain.com:8080
set https_proxy=https://username:password@proxy.domain.com:8080
</code></pre>
<h1>2. git代理</h1>
<pre><code class="language-dos"># 配置代理
git config --global http.proxy http://username:password@proxy.domain.com:8080
git config --global https.proxy https://username:password@proxy.domain.com:8080
git config --global http.sslverify false

# git config --global https.proxy http://127.0.0.1:7890
# git config --global https.proxy http://127.0.0.1:7890

# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
# 指定网站代理
git config --global http.https://github.com.proxy http://username:password@proxy.domain.com:8080
# 取消代理  
git config --global --unset http.https://github.com.proxy
</code></pre>
<p>也可以直接编辑~/.gitconfig文件</p>
<h1>3. windows配置beyondcompare作为gitdiff</h1>
<p>修改.gitconfig配置文件</p>
<pre><code class="language-text">[diff] 
    tool = bc4 
[difftool] 
    prompt = false 
[difftool &quot;bc4&quot;]
    cmd = &quot;\&quot;D:/Beyond Compare/bcomp.exe\&quot; \&quot;$LOCAL\&quot; \&quot;$REMOTE\&quot;&quot; 
[merge]
    tool = bc4 [mergetool] prompt = false 
[mergetool &quot;bc4&quot;] 
    cmd = &quot;\&quot;D:/Beyond Compare/bcomp.exe\&quot; \&quot;$LOCAL\&quot; \&quot;$REMOTE\&quot; \&quot;$BASE\&quot; \&quot;$MERGED\&quot;&quot; 
    trustExitCode = true
</code></pre>
<h1>4. 删除重复文件</h1>
<pre><code class="language-poweshell"># 预览模式
Get-ChildItem -Path &quot;D:\document&quot; -File -Recurse | Where-Object {$_.BaseName -match &#39;^.+ \d{1,2}&lt;h1&gt;1. windows命令行代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;set http_proxy=http://username:password@proxy.domain.com:8080
set https_proxy=https://username:password@proxy.domain.com:8080
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;2. git代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;# 配置代理
git config --global http.proxy http://username:password@proxy.domain.com:8080
git config --global https.proxy https://username:password@proxy.domain.com:8080
git config --global http.sslverify false

# git config --global https.proxy http://127.0.0.1:7890
# git config --global https.proxy http://127.0.0.1:7890

# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
# 指定网站代理
git config --global http.https://github.com.proxy http://username:password@proxy.domain.com:8080
# 取消代理  
git config --global --unset http.https://github.com.proxy
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;也可以直接编辑~/.gitconfig文件&lt;/p&gt;
&lt;h1&gt;3. windows配置beyondcompare作为gitdiff&lt;/h1&gt;
&lt;p&gt;修改.gitconfig配置文件&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;[diff] 
    tool = bc4 
[difftool] 
    prompt = false 
[difftool &amp;quot;bc4&amp;quot;]
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot;&amp;quot; 
[merge]
    tool = bc4 [mergetool] prompt = false 
[mergetool &amp;quot;bc4&amp;quot;] 
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot; \&amp;quot;$BASE\&amp;quot; \&amp;quot;$MERGED\&amp;quot;&amp;quot; 
    trustExitCode = true
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;4. 删除重复文件&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-poweshell&quot;&gt;# 预览模式
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Select-Object FullName

# 实际删除(确认无误后使用)
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Remove-Item -Force
&lt;/code&gt;&lt;/pre&gt;
#39;} | Select-Object FullName

# 实际删除(确认无误后使用)
Get-ChildItem -Path &quot;D:\document&quot; -File -Recurse | Where-Object {$_.BaseName -match &#39;^.+ \d{1,2}&lt;h1&gt;1. windows命令行代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;set http_proxy=http://username:password@proxy.domain.com:8080
set https_proxy=https://username:password@proxy.domain.com:8080
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;2. git代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;# 配置代理
git config --global http.proxy http://username:password@proxy.domain.com:8080
git config --global https.proxy https://username:password@proxy.domain.com:8080
git config --global http.sslverify false

# git config --global https.proxy http://127.0.0.1:7890
# git config --global https.proxy http://127.0.0.1:7890

# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
# 指定网站代理
git config --global http.https://github.com.proxy http://username:password@proxy.domain.com:8080
# 取消代理  
git config --global --unset http.https://github.com.proxy
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;也可以直接编辑~/.gitconfig文件&lt;/p&gt;
&lt;h1&gt;3. windows配置beyondcompare作为gitdiff&lt;/h1&gt;
&lt;p&gt;修改.gitconfig配置文件&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;[diff] 
    tool = bc4 
[difftool] 
    prompt = false 
[difftool &amp;quot;bc4&amp;quot;]
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot;&amp;quot; 
[merge]
    tool = bc4 [mergetool] prompt = false 
[mergetool &amp;quot;bc4&amp;quot;] 
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot; \&amp;quot;$BASE\&amp;quot; \&amp;quot;$MERGED\&amp;quot;&amp;quot; 
    trustExitCode = true
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;4. 删除重复文件&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-poweshell&quot;&gt;# 预览模式
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Select-Object FullName

# 实际删除(确认无误后使用)
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Remove-Item -Force
&lt;/code&gt;&lt;/pre&gt;
#39;} | Remove-Item -Force
</code></pre>

    </section>
</article>amp;#39;} | Select-Object FullName

# 实际删除(确认无误后使用)
Get-ChildItem -Path &quot;D:\document&quot; -File -Recurse | Where-Object {$_.BaseName -match &#39;^.+ \d{1,2}<article>
    <header>
        <h1>效率工具</h1>
        <time datetime="2025-09-17T13:31:12.000Z">2025年9月17日</time>
        <div class="tags">
            
        </div>
    </header>
    <section class="content">
        <h1>1. windows命令行代理</h1>
<pre><code class="language-dos">set http_proxy=http://username:password@proxy.domain.com:8080
set https_proxy=https://username:password@proxy.domain.com:8080
</code></pre>
<h1>2. git代理</h1>
<pre><code class="language-dos"># 配置代理
git config --global http.proxy http://username:password@proxy.domain.com:8080
git config --global https.proxy https://username:password@proxy.domain.com:8080
git config --global http.sslverify false

# git config --global https.proxy http://127.0.0.1:7890
# git config --global https.proxy http://127.0.0.1:7890

# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
# 指定网站代理
git config --global http.https://github.com.proxy http://username:password@proxy.domain.com:8080
# 取消代理  
git config --global --unset http.https://github.com.proxy
</code></pre>
<p>也可以直接编辑~/.gitconfig文件</p>
<h1>3. windows配置beyondcompare作为gitdiff</h1>
<p>修改.gitconfig配置文件</p>
<pre><code class="language-text">[diff] 
    tool = bc4 
[difftool] 
    prompt = false 
[difftool &quot;bc4&quot;]
    cmd = &quot;\&quot;D:/Beyond Compare/bcomp.exe\&quot; \&quot;$LOCAL\&quot; \&quot;$REMOTE\&quot;&quot; 
[merge]
    tool = bc4 [mergetool] prompt = false 
[mergetool &quot;bc4&quot;] 
    cmd = &quot;\&quot;D:/Beyond Compare/bcomp.exe\&quot; \&quot;$LOCAL\&quot; \&quot;$REMOTE\&quot; \&quot;$BASE\&quot; \&quot;$MERGED\&quot;&quot; 
    trustExitCode = true
</code></pre>
<h1>4. 删除重复文件</h1>
<pre><code class="language-poweshell"># 预览模式
Get-ChildItem -Path &quot;D:\document&quot; -File -Recurse | Where-Object {$_.BaseName -match &#39;^.+ \d{1,2}&lt;h1&gt;1. windows命令行代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;set http_proxy=http://username:password@proxy.domain.com:8080
set https_proxy=https://username:password@proxy.domain.com:8080
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;2. git代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;# 配置代理
git config --global http.proxy http://username:password@proxy.domain.com:8080
git config --global https.proxy https://username:password@proxy.domain.com:8080
git config --global http.sslverify false

# git config --global https.proxy http://127.0.0.1:7890
# git config --global https.proxy http://127.0.0.1:7890

# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
# 指定网站代理
git config --global http.https://github.com.proxy http://username:password@proxy.domain.com:8080
# 取消代理  
git config --global --unset http.https://github.com.proxy
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;也可以直接编辑~/.gitconfig文件&lt;/p&gt;
&lt;h1&gt;3. windows配置beyondcompare作为gitdiff&lt;/h1&gt;
&lt;p&gt;修改.gitconfig配置文件&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;[diff] 
    tool = bc4 
[difftool] 
    prompt = false 
[difftool &amp;quot;bc4&amp;quot;]
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot;&amp;quot; 
[merge]
    tool = bc4 [mergetool] prompt = false 
[mergetool &amp;quot;bc4&amp;quot;] 
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot; \&amp;quot;$BASE\&amp;quot; \&amp;quot;$MERGED\&amp;quot;&amp;quot; 
    trustExitCode = true
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;4. 删除重复文件&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-poweshell&quot;&gt;# 预览模式
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Select-Object FullName

# 实际删除(确认无误后使用)
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Remove-Item -Force
&lt;/code&gt;&lt;/pre&gt;
#39;} | Select-Object FullName

# 实际删除(确认无误后使用)
Get-ChildItem -Path &quot;D:\document&quot; -File -Recurse | Where-Object {$_.BaseName -match &#39;^.+ \d{1,2}&lt;h1&gt;1. windows命令行代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;set http_proxy=http://username:password@proxy.domain.com:8080
set https_proxy=https://username:password@proxy.domain.com:8080
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;2. git代理&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-dos&quot;&gt;# 配置代理
git config --global http.proxy http://username:password@proxy.domain.com:8080
git config --global https.proxy https://username:password@proxy.domain.com:8080
git config --global http.sslverify false

# git config --global https.proxy http://127.0.0.1:7890
# git config --global https.proxy http://127.0.0.1:7890

# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
# 指定网站代理
git config --global http.https://github.com.proxy http://username:password@proxy.domain.com:8080
# 取消代理  
git config --global --unset http.https://github.com.proxy
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;也可以直接编辑~/.gitconfig文件&lt;/p&gt;
&lt;h1&gt;3. windows配置beyondcompare作为gitdiff&lt;/h1&gt;
&lt;p&gt;修改.gitconfig配置文件&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;[diff] 
    tool = bc4 
[difftool] 
    prompt = false 
[difftool &amp;quot;bc4&amp;quot;]
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot;&amp;quot; 
[merge]
    tool = bc4 [mergetool] prompt = false 
[mergetool &amp;quot;bc4&amp;quot;] 
    cmd = &amp;quot;\&amp;quot;D:/Beyond Compare/bcomp.exe\&amp;quot; \&amp;quot;$LOCAL\&amp;quot; \&amp;quot;$REMOTE\&amp;quot; \&amp;quot;$BASE\&amp;quot; \&amp;quot;$MERGED\&amp;quot;&amp;quot; 
    trustExitCode = true
&lt;/code&gt;&lt;/pre&gt;
&lt;h1&gt;4. 删除重复文件&lt;/h1&gt;
&lt;pre&gt;&lt;code class=&quot;language-poweshell&quot;&gt;# 预览模式
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Select-Object FullName

# 实际删除(确认无误后使用)
Get-ChildItem -Path &amp;quot;D:\document&amp;quot; -File -Recurse | Where-Object {$_.BaseName -match &amp;#39;^.+ \d{1,2}$&amp;#39;} | Remove-Item -Force
&lt;/code&gt;&lt;/pre&gt;
#39;} | Remove-Item -Force
</code></pre>

    </section>
</article>amp;#39;} | Remove-Item -Force
</code></pre>
#39;} | Remove-Item -Force