Last active
October 13, 2021 17:31
-
-
Save masterdesky/92809908afe09f7be4f83ae8dbd487e5 to your computer and use it in GitHub Desktop.
CD to GitHub directory or create one if it isn't exists on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set /p github-dir=%GITHUB_DIR_LOCATION% | |
if not exist %github-dir% ( | |
echo "GitHub folder is missing! Creating..." | |
mkdir "%github-dir%" 2>nul | |
) | |
cd "%github-dir%" | |
echo "Changed to GitHub directory" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment