diff options
| author | Rishi-k-s <rishikrishna.sr@gmail.com> | 2025-01-26 15:52:31 +0530 |
|---|---|---|
| committer | Rishi-k-s <rishikrishna.sr@gmail.com> | 2025-01-26 15:52:31 +0530 |
| commit | 4f0937d016484406a2a0edc791056fb4d05f2b76 (patch) | |
| tree | c0293ac0bb22974659d21d654cacbe0a3748b68e | |
initialcommit
| -rw-r--r-- | LICENSE | 21 | ||||
| -rw-r--r-- | README.md | 57 | ||||
| -rw-r--r-- | gitsetup.bat | 15 |
3 files changed, 93 insertions, 0 deletions
@@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Rishi Krishna S + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.
\ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..d5db293 --- /dev/null +++ b/README.md @@ -0,0 +1,57 @@ +# GitHub Automation Script + +This repository contains a batch file that automates various GitHub processes to streamline your workflow. + +## Features + +- Initialze Git +- Commit changes +- Add remote repository +- Push changes to remote repositories + +## Prerequisites + +- Ensure you have Git installed on your machine. You can download it from [here](https://git-scm.com/downloads). To check if Git is installed, run: + ```sh + git --version + ``` +- Install GitHub CLI from [here](https://cli.github.com/). To check if GitHub CLI is installed, run: + ```sh + gh --version + ``` +- Configure your GitHub credentials for seamless authentication. + +## Usage (Windows) +**Support for more OS will be added ;)** + +1. Clone this repository to your local machine. +2. move the repo directory to `C:\aliases` +3. Edit the `origin` section in the batch file to set your GitHub username and email: + ```bat + git remote add origin https://github.com/your_user_name/%1 + ``` +4. add this `C:\aliases` file to your Environment Variables +5. Run the batch file using the command prompt: + ``` + gitsetup repo_name commit_message --private/--public + ``` +6. Done ✨ + +## Example +``` + gitsetup test "first commit" --private +``` + +## License + +This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. + +## Contributing + +Contributions are welcome! Please open an issue or submit a pull request. + +## Contact + +For any questions or feedback, please contact [rishikrishna.sr@gmail.com](mailto:rishikrishna.sr@gmail.com). + +## Made with ❤️ By Rishi diff --git a/gitsetup.bat b/gitsetup.bat new file mode 100644 index 0000000..7b239ca --- /dev/null +++ b/gitsetup.bat @@ -0,0 +1,15 @@ +@echo off +git init +git add . +git commit -m "%2" + +if "%3"=="--private" ( + gh repo create %1 --private +) +if "%3"=="--public" ( + gh repo create %1 --public +) + +git remote add origin https://github.com/Rishi-k-s/%1 + +git push
\ No newline at end of file |
