31 lines
768 B
Batchfile
31 lines
768 B
Batchfile
L:
|
|
cd L:\Git
|
|
mkdir "%1.git"
|
|
cd "%1.git"
|
|
git init --bare
|
|
git config core.logAllRefUpdates "true"
|
|
cd ..
|
|
robocopy /E /MOVE "%1.git" "\\mestsa003.infineon.com\Git\%1.git"
|
|
cd "%1"
|
|
git init
|
|
git rev-parse --git-dir
|
|
git fetch
|
|
git remote --verbose
|
|
git config --get commit.template
|
|
git config --local branch.master.github-pr-owner-number
|
|
git remote add origin "\\mestsa003.infineon.com\Git\%1.git"
|
|
copy "L:\Git\VS-Code-Settings\Visual Studio Settings\.editorconfig" "L:\Git\%1\.editorconfig"
|
|
dotnet new gitignore
|
|
dotnet new tool-manifest
|
|
dotnet tool install Husky
|
|
dotnet tool restore
|
|
dotnet husky install
|
|
dotnet husky add pre-commit
|
|
echo {"scripts": {}}>package.json
|
|
git add .
|
|
git commit -m "Initial Commit"
|
|
git push origin master
|
|
git fetch
|
|
git push -u origin master
|
|
code .
|
|
exit |