对于github初学者,刚配置的环境可能会遇到各种坑,比如如果本地电脑使用的是公司网络,那有可能按照正常操作:去github上clone一个project的时候,就会提示C:\myproject\vue01>gitclonehttps://github.com/hemiahwu/vue-basic.gitCloninginto'vue-basic'...fatal:unabletoacces            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2019-04-19 10:37:25
                            
                                4323阅读
                            
                                                        
                                点赞
                            
                                                                             
                 
                
                             
         
            
            
            
            git 全局配置要检查已有的配置信息            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-05-31 11:55:22
                            
                                1324阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            首先你需要有代理,比如我用的是ssr那么首先看下端口号是多少 git设置代理命令是:            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-03-17 11:18:44
                            
                                1206阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            Git 代理设置 问题:git clone 太慢,甚至有时 git push 都不行 解决方案: 1 全局代理设置 git config --global http.proxy http://127.0.0.1:7890 git config --global https.proxy https:/ ...            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2021-10-05 01:24:00
                            
                                1859阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            设置ss git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080' 设置代理 git config --global https ...            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2021-10-22 11:17:00
                            
                                230阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            设置代理//sock5代理
git config --global http.proxy socks5://127.0.0.1:10808
git config --global https.proxy socks5://127.0.0.1:10808
git config --global http.proxy socks5 127.0.0.1:10808
git config --global            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-07-13 10:16:27
                            
                                138阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            当linux 代理软件设置好后,我们需要设置命令行代理的连接方式,这样在命令行中的软件才能使用: 设置http/https代理: export https_proxy="127.0.0.1:12333" export http_proxy="127.0.0.1:12333" 如果有密码: expor ...            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2021-04-26 22:52:23
                            
                                3456阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
                五一节日快乐,劳动使我快乐。    今天给大家分享的是git小知识,内容不多,主要是关于git工具设置代理和取消代理的方式。其实就是两行git命令,在这里记载一下,以便后面有小伙伴用到的话,对他们的学习有帮助。如果代理类型是socks5进行如下设置即可git config --global http.proxy socks5://127.0.0.1:1080git config            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-03-16 15:39:19
                            
                                838阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            如果代理类型是socks5进行如下设置即可git config --global http.proxy socks5://127.0.0.1:1080git config --global https.proxy socks5://127.0.0.1:1080如果是普通的http/https进行如下设置即可git config --global https.proxy http://127.0.0            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-03-07 00:00:30
                            
                                903阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            git config 命令,查看如下图所示公司内网 git 访问外网需要设置代理,            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-01-19 13:44:07
                            
                                256阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            有两篇文章写的都不错, 这里转载一下.
 
各种SCM工具下使用http代理下载源码
经常有使用SCM下载源码的必要,尤其是软件开发人员。但偶们的网络环境经常逼得我们不得不使用代理,或者是因为速度,或者是因为直连根本就不通。而且源码通常是零零碎碎的几千几万个小文件,不像一般的软件是单个的文件,一个下载工具即可搞定。
1,CVS
CVS使用代理非常麻烦,似乎不能用http代...            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-05-29 11:33:09
                            
                                445阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            问题 默认的git下载很慢,想加速 配置代理 [root@lab201 nfs-ganesha]# cat /root/.gitconfig [user] email = zphj1987@gmail.com name = zphj1987 [credential] helper = store [            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2024-01-08 17:31:42
                            
                                112阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            git config 命令,查看如下图所示公司内网 git 访问外网需要设置代理,而一般网上给出的设置方法是 git config --global http.proxy 192.168.40.12:8080。这个是一个全局配置,对所有的提交行为都生效。git config --local http.proxy 192.168.40.12:8080。只对当前项目生效。...            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2021-08-30 16:27:56
                            
                                1064阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            git给当前项目设置http和https代理 git config http.proxy http://127.0.0.1:1080 git config https.proxy https://127.0.0.1:1080 //被改动的对应文件:当前git项目目录下的.git\config文件 g            
                
         
            
            
            
            设置http、https代理 git config --global http.proxy socks5://127.0.0.1:1080 git config --global https.proxy socks5://127.0.0.1:1080 查看http、https代理配置情况 git c            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-09-28 17:18:42
                            
                                87阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            https://gist.github.com/laispace/666dd7b27e9116faece6            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2021-07-30 14:16:01
                            
                                582阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            参考: https://gist.go            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2022-08-19 16:53:52
                            
                                239阅读
                            
                                                                             
                 
                
                                
                     
                                    
                             
         
            
            
            
            常用的软件设置代理方法Gitgitconfig--globalhttps.proxyhttp://127.0.0.1:1080gitconfig--globalhttps.proxyhttps://127.0.0.1:1080gitconfig--global--unsethttp.proxygitconfig--global--unsethttps.proxynpmconfigdeletepro            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2020-08-26 15:10:14
                            
                                1260阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            设置代理:前提你得有代理哈设置代理://http || https
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890
//sock5代理
git config --global http.proxy socks5 127.0.0.1:7891
git confi            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-12-25 14:15:26
                            
                                335阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            ```
# 设置ss
git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080' # 设置代理
git config --global https.proxy http://127.0.0.1:1080 git config...            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2021-05-14 14:37:58
                            
                                277阅读