config

git config --global insteadOf for a project, not global

依然范特西╮ 提交于 2021-01-29 01:40:03
问题 I created a .gitconfig file using the command git config --global url."https://".insteadOf git:// However, this will replace all git:// URLs WITH https:// ones, for all projects on my computer. I want this functionality, for a specific project. Is it possible to configure a replace for git:// URLs for https:// URLs for a certain project/not global? This project is shared, and I don't want everyone to go through the trouble of running the command locally. 回答1: You can do the following: Edit

http.sslVerify=false doesn't disable ssl verification in git config

♀尐吖头ヾ 提交于 2021-01-28 21:59:36
问题 Issue: I have been trying to clone a git repository from a Ubuntu AWS instance, through an http proxy (set in git global config) from an enterprise GitHub server. Cloning from the proxy works, but cloning from the instance (through the proxy) I get the following error: fatal: unable to access 'https://githubserver.company.com/repository.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none I have already tried to download the server

Getting kubectl config use-context error when trying to switch context

二次信任 提交于 2021-01-28 19:22:42
问题 When I am trying to switch kubectl configuration using " kubectl config use-context new-context " where new-context is my desired context, I am getting the following error on my Mac machine: error: open some-context.lock: file exists where some-context is another kubectl configuration. However, some-context is not the active context. I see the same error when try " kubectl config set-context new-context " as well. How can I fix the issue? I am using MacOS Mojava, version: 10.14.6. 回答1: The

Getting kubectl config use-context error when trying to switch context

血红的双手。 提交于 2021-01-28 18:51:57
问题 When I am trying to switch kubectl configuration using " kubectl config use-context new-context " where new-context is my desired context, I am getting the following error on my Mac machine: error: open some-context.lock: file exists where some-context is another kubectl configuration. However, some-context is not the active context. I see the same error when try " kubectl config set-context new-context " as well. How can I fix the issue? I am using MacOS Mojava, version: 10.14.6. 回答1: The

pg_config - how to change postgres versions

自闭症网瘾萝莉.ら 提交于 2021-01-28 00:15:15
问题 By default I had postgres 10 versions on my two ubuntu 14 machines, but I installed postgres 9.6 on the two of them. But on one of them pg_config give me: VERSION = PostgreSQL 9.6.6 And the other: VERSION = PostgreSQL 10.1 They have the same libpq-dev packages in: dpkg -l | grep libpq-dev libpq-dev 10.1-1.pgdg14.04+1 amd64 header files for libpq5 (PostgreSQL library) So I was wondering is there a way for me to change the version installed that it gives me postgres 9.6 instead of postgres 10

configure npm&webpack Win10 for long paths using relative paths

[亡魂溺海] 提交于 2021-01-07 02:16:31
问题 Current webpack bundling project folder structure (win10) : root_folder\ |--node_modules |--src |--index.js |--template.html |--package.json |--webpack.config.js Contents of index.js : console.log("Hello webpack"); Contents of template.html : <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title><%= htmlWebpackPlugin.options.title %></title> </head> <body> <div id="root"></div> </body> </html> Contents of package.json: { "name": "test", "version": "1.0.0", "description": "",

configure npm&webpack Win10 for long paths using relative paths

风格不统一 提交于 2021-01-07 02:16:30
问题 Current webpack bundling project folder structure (win10) : root_folder\ |--node_modules |--src |--index.js |--template.html |--package.json |--webpack.config.js Contents of index.js : console.log("Hello webpack"); Contents of template.html : <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title><%= htmlWebpackPlugin.options.title %></title> </head> <body> <div id="root"></div> </body> </html> Contents of package.json: { "name": "test", "version": "1.0.0", "description": "",