Introduction: MultiGitSwitch is a handy bash script designed for developers who work on a single system but need to manage multiple Git accounts for their projects. Whether you're contributing to personal and work repositories or collaborating on different projects with distinct Git identities, this script simplifies the process of switching between multiple Git configurations seamlessly.
How to Use:
- Go to this directory on you machine (its diffrent in each OS).
/usr/local/bin
- Clone the repository to your local machine.
git clone https://github.com/spr021/Git-Multiple.git
- Go to the directory
cd Git-Multiple
- Make the script executable using the
chmod
command:
sudo chmod +x switch.sh
- To create an alias for the script, open your shell configuration file (e.g.,
~/.bashrc
or~/.zshrc
) in a text editor. Use the following command forbash
:
alias switch='/usr/local/bin/Git-Multiple/switch.sh'
- Now you can use script every where on your machin and change git account config, just write
switch
on your terminal
Contributing: Contributions are welcome! If you encounter any issues, have suggestions, or want to improve the script, feel free to submit a pull request or open an issue.
License: This project is licensed under the MIT License - see the LICENSE file for details.
Simplify your Git workflow with Git Multiple and effortlessly manage multiple Git accounts on a single system. Happy coding!