It no “master” branch at all in Github. So my local git server also need “main” branch.

  • My Ubuntu server the default template directory:
/usr/share/git-core/templates
  • Mac:
/usr/local/git/share/git-core/templates
ref: refs/heads/main
require(‘../../../../some/very/deep/module’)
npm i --save module-alias
"_moduleAliases": {
"@root" : ".",
"@deep" : "src/some/very/deep/directory/or/file",
"utils" : "utils"
}
require('module-alias/register')
{
"compilerOptions": {
"baseUrl": ".",
"module": "commonjs",
"paths": {
"lib/*": [
"./lib/*"
],
"utils/*": [
"./utils/*"
],
}
},
"exclude": [
"node_modules",
]
}
require('utils/api/client')

favicon valley

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store