192.168.0.73.bat
This commit is contained in:
parent
3e6b6dac43
commit
ca79ea6114
37
Git/192.168.0.73.bat
Normal file
37
Git/192.168.0.73.bat
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
echo off
|
||||||
|
L:
|
||||||
|
cd L:\Git
|
||||||
|
mkdir "%1.git"
|
||||||
|
cd "%1.git"
|
||||||
|
git init --bare
|
||||||
|
git config core.logAllRefUpdates "true"
|
||||||
|
cd ..
|
||||||
|
echo Use WinSCP to copy (okay to keep) the %1.git directory to /srv/git. Then click return when done
|
||||||
|
@pause
|
||||||
|
echo sudo -i
|
||||||
|
echo 4hink
|
||||||
|
echo chown git /srv/git -R
|
||||||
|
echo chgrp git /srv/git -R
|
||||||
|
echo exit
|
||||||
|
echo exit
|
||||||
|
echo Run the above command in putty. Then click return when done
|
||||||
|
"C:\Program Files\PuTTY\putty.exe" -ssh unity4@192.168.0.73 -pw 4hink
|
||||||
|
git clone git@192.168.0.73:/srv/git/%1.git
|
||||||
|
cd "%1"
|
||||||
|
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
|
||||||
|
git remote add mestsa003 "\\mestsa003.infineon.com\Git\%1.git"
|
||||||
|
git push mestsa003 master
|
||||||
|
code .
|
||||||
|
exit
|
Loading…
x
Reference in New Issue
Block a user