Skip to content

Instantly share code, notes, and snippets.

@oksbwn
Created April 3, 2020 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oksbwn/f7fffd3b10bfd54839c2ddc079ad5cf5 to your computer and use it in GitHub Desktop.
Save oksbwn/f7fffd3b10bfd54839c2ddc079ad5cf5 to your computer and use it in GitHub Desktop.
@echo off
set /p project="Enter ID: "
echo Project name is %project%
cd C://Workspace
mkdir "%project%"
cd "%project%"
mkdir Blog Circuit Code Edits Raw Thumbnails Upload
mkdir Code\Lib Raw\Images Raw\Videos Raw\Unused Raw\B_Rolls Raw\Screen_Capture
cd Code
echo Started working on project on %DATE:~10,4%%DATE:~4,2%%DATE:~7,2% %project% > README.md
git init
git add .
git commit -m "Starting the project on %DATE:~10,4%%DATE:~4,2%%DATE:~7,2%"
C:\Program^ Files\Portable^ Installations\curl\bin\curl.exe -i -H "Authorization: token ____Replace_eith_your_github_token___" -d "{\"name\": \"%project%\", \"private\": true }" https://api.github.com/user/repos
set url_gh=%project: =-%
git remote add origin https://github.com/oksbwn/%url_gh%
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment