Created
February 16, 2023 05:13
-
-
Save rajtilakjee/4528e0df65cd0a29567e352d02f5ee4a to your computer and use it in GitHub Desktop.
Batch file to push simple changes from local repo to remote.
This file contains hidden or 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 | |
cd "C:\prod\local-repo" | |
git add . | |
set /p input="Name the commit: " | |
git commit -m "%input%" | |
git push origin main | |
cd .. |
Author
rajtilakjee
commented
Feb 16, 2023
- Change the "C:\prod\local-repo" path to your local repository.
- Git and GitHub CLI must be installed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment