diff --git a/README.md b/README.md index 757ef31..1feb49d 100644 --- a/README.md +++ b/README.md @@ -178,6 +178,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Use SSH instead of HTTPs for remotes](#use-ssh-instead-of-https-for-remotes) * [Update a submodule to the latest commit](#update-a-submodule-to-the-latest-commit) * [Prevent auto replacing LF with CRLF](#prevent-auto-replacing-lf-with-crlf) +* [Edit config for each level](#edit-config-for-each-level) @@ -1263,6 +1264,11 @@ git commit -m "submodule updated" ```sh git config --global core.autocrlf false ``` - +## Edit config for each level +```sh +git config --edit --system +git config --edit --global +git config --edit --local +``` diff --git a/package-lock.json b/package-lock.json index ec93f7f..b83bb97 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,297 +1,375 @@ { "name": "tips", "version": "1.0.0", - "lockfileVersion": 1, + "lockfileVersion": 3, "requires": true, - "dependencies": { - "101": { + "packages": { + "": { + "name": "tips", + "version": "1.0.0", + "license": "MIT", + "devDependencies": { + "doxie": "^0.2.2", + "doxie.append": "^0.1.0", + "doxie.inject": "^0.1.1", + "doxie.output": "^0.3.0", + "doxie.render": "^0.3.0", + "husky": "^5.0.9" + } + }, + "node_modules/1-liners": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/1-liners/-/1-liners-0.3.6.tgz", + "integrity": "sha1-SDD+eLdTejaZ+IpdQqjtwa9mB/8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/101": { "version": "1.6.3", "resolved": "https://registry.npmjs.org/101/-/101-1.6.3.tgz", "integrity": "sha512-4dmQ45yY0Dx24Qxp+zAsNLlMF6tteCyfVzgbulvSyC7tCyd3V8sW76sS0tHq8NpcbXfWTKasfyfzU1Kd86oKzw==", "dev": true, - "requires": { + "dependencies": { "clone": "^1.0.2", "deep-eql": "^0.1.3", "keypather": "^1.10.2" } }, - "1-liners": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/1-liners/-/1-liners-0.3.6.tgz", - "integrity": "sha1-SDD+eLdTejaZ+IpdQqjtwa9mB/8=", - "dev": true - }, - "ansi-regex": { + "node_modules/ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "ansi-styles": { + "node_modules/ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "array-find": { + "node_modules/array-find": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-find/-/array-find-1.0.0.tgz", "integrity": "sha1-bI4obRHtdoMn+OYuzuhzU8o+eLg=", "dev": true }, - "base64-js": { + "node_modules/base64-js": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-0.0.2.tgz", "integrity": "sha1-Ak8Pcq+iW3X5wO5zzU9V7Bvtl4Q=", - "dev": true + "dev": true, + "engines": { + "node": ">= 0.4" + } }, - "bops": { + "node_modules/bops": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/bops/-/bops-0.0.6.tgz", "integrity": "sha1-CC0dVfoB5g29wuvC26N/ZZVUzzo=", "dev": true, - "requires": { + "dependencies": { "base64-js": "0.0.2", "to-utf8": "0.0.1" } }, - "chalk": { + "node_modules/chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, - "requires": { + "dependencies": { "ansi-styles": "^2.2.1", "escape-string-regexp": "^1.0.2", "has-ansi": "^2.0.0", "strip-ansi": "^3.0.0", "supports-color": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "clone": { + "node_modules/clone": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8" + } }, - "concat-stream": { + "node_modules/concat-stream": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.2.1.tgz", "integrity": "sha1-81EAtsRjeL+6i2uA+fDQzN8T3GA=", "dev": true, - "requires": { + "engines": [ + "node >= 0.8.0" + ], + "dependencies": { "bops": "0.0.6" } }, - "deep-eql": { + "node_modules/deep-eql": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-0.1.3.tgz", "integrity": "sha1-71WKyrjeJSBs1xOQbXTlaTDrafI=", "dev": true, - "requires": { + "dependencies": { "type-detect": "0.1.1" + }, + "engines": { + "node": "*" } }, - "defined": { + "node_modules/defined": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=", "dev": true }, - "doxie": { + "node_modules/doxie": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/doxie/-/doxie-0.2.4.tgz", "integrity": "sha1-KZltv1dg/OdNvLTXnGAjHYoXu4U=", "dev": true, - "requires": { + "dependencies": { "1-liners": "^0.3.2", "chalk": "^1.0.0", "doxie-core": "^0.3.1", "stream-to-json": "^0.0.1", "tiny-error": "^0.2.1" + }, + "bin": { + "doxie": "bin/doxie.js" } }, - "doxie-core": { + "node_modules/doxie-core": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/doxie-core/-/doxie-core-0.3.1.tgz", "integrity": "sha1-PS+RQ+WF45Cpgwjcnk7zjxPPQss=", "dev": true, - "requires": { + "dependencies": { "1-liners": "^0.3.0", "chalk": "^1.0.0", "tiny-error": "^0.2.1" } }, - "doxie.append": { + "node_modules/doxie.append": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/doxie.append/-/doxie.append-0.1.0.tgz", "integrity": "sha1-yHRoUEL18wlKTQwzNsPklMNpdOE=", "dev": true, - "requires": { - "object-assign": "^3.0.0" - }, "dependencies": { - "object-assign": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", - "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", - "dev": true - } + "object-assign": "^3.0.0" } }, - "doxie.inject": { + "node_modules/doxie.append/node_modules/object-assign": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", + "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/doxie.inject": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/doxie.inject/-/doxie.inject-0.1.1.tgz", "integrity": "sha1-/QNYT4segOZEtcuUdpr+RH94oEc=", "dev": true, - "requires": { + "dependencies": { "1-liners": "^0.3.2", "array-find": "^1.0.0", "chalk": "^1.0.0", "defined": "^1.0.0", "object-assign": "^3.0.0", "tiny-error": "^0.2.1" - }, - "dependencies": { - "object-assign": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", - "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", - "dev": true - } } }, - "doxie.output": { + "node_modules/doxie.inject/node_modules/object-assign": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", + "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/doxie.output": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/doxie.output/-/doxie.output-0.3.0.tgz", "integrity": "sha1-4H4Stn2qX8KLPsZn0HAv1ziZitE=", "dev": true, - "requires": { + "dependencies": { "1-liners": "^0.3.0", "object-assign": "^3.0.0" - }, - "dependencies": { - "object-assign": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", - "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", - "dev": true - } } }, - "doxie.render": { + "node_modules/doxie.output/node_modules/object-assign": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", + "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/doxie.render": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/doxie.render/-/doxie.render-0.3.2.tgz", "integrity": "sha1-Mva37g88NSSokT08grn6uqoKGPA=", "dev": true, - "requires": { + "dependencies": { "1-liners": "^0.3.1", "chalk": "^1.0.0", "object-assign": "^3.0.0", "tiny-error": "^0.2.1" - }, - "dependencies": { - "object-assign": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", - "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", - "dev": true - } } }, - "escape-string-regexp": { + "node_modules/doxie.render/node_modules/object-assign": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", + "integrity": "sha1-m+3VygiXlJvKR+f/QIBi1Un1h/I=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8.0" + } }, - "has-ansi": { + "node_modules/has-ansi": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", "dev": true, - "requires": { + "dependencies": { "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "husky": { + "node_modules/husky": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/husky/-/husky-5.2.0.tgz", "integrity": "sha512-AM8T/auHXRBxlrfPVLKP6jt49GCM2Zz47m8G3FOMsLmTv8Dj/fKVWE0Rh2d4Qrvmy131xEsdQnb3OXRib67PGg==", - "dev": true + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/typicode" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/husky" + } + ], + "bin": { + "husky": "lib/bin.js" + }, + "engines": { + "node": ">= 10" + } }, - "keypather": { + "node_modules/keypather": { "version": "1.10.2", "resolved": "https://registry.npmjs.org/keypather/-/keypather-1.10.2.tgz", "integrity": "sha1-4ESWMtSz5RbyHMAUznxWRP3c5hQ=", "dev": true, - "requires": { + "dependencies": { "101": "^1.0.0" } }, - "object-assign": { + "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "once": { + "node_modules/once": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz", "integrity": "sha1-suJhVXzkwxTsgwTz+oJmPkKXyiA=", "dev": true, - "requires": { + "dependencies": { "wrappy": "1" } }, - "stream-to-json": { + "node_modules/stream-to-json": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/stream-to-json/-/stream-to-json-0.0.1.tgz", "integrity": "sha1-8DDyt47TjkkpPbiFZTarzCZ3FHM=", "dev": true, - "requires": { + "dependencies": { "concat-stream": "~1.2.0", "once": "~1.3.0" } }, - "strip-ansi": { + "node_modules/strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, - "requires": { + "dependencies": { "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "supports-color": { + "node_modules/supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true + "dev": true, + "engines": { + "node": ">=0.8.0" + } }, - "tiny-error": { + "node_modules/tiny-error": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/tiny-error/-/tiny-error-0.2.3.tgz", "integrity": "sha1-KHas/leFGwcUMTwVNd/HBgp8Cbs=", "dev": true, - "requires": { + "dependencies": { "101": "^1.0.0", "object-assign": "^4.0.1" } }, - "to-utf8": { + "node_modules/to-utf8": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/to-utf8/-/to-utf8-0.0.1.tgz", "integrity": "sha1-0Xrqcv8vujm55DYBvns/9y4ImFI=", "dev": true }, - "type-detect": { + "node_modules/type-detect": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-0.1.1.tgz", "integrity": "sha1-C6XsKohWQORw6k6FBZcZANrFiCI=", - "dev": true + "dev": true, + "engines": { + "node": "*" + } }, - "wrappy": { + "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", diff --git a/tips.json b/tips.json index d53d1ae..47c4a79 100644 --- a/tips.json +++ b/tips.json @@ -531,5 +531,8 @@ }, { "title": "Prevent auto replacing LF with CRLF", "tip": "git config --global core.autocrlf false" + }, { + "title": "Edit config for each level", + "tip": "git config --edit --system\ngit config --edit --global\ngit config --edit --local" } ]