This is a Python CLI tool to manage Git global user configuration.
- Ensure you have Python and Git installed on your system.
- Clone or download the repository.
- Navigate to the repository directory.
- Run the script using Python:
python main.py
Run the script with one of the following options:
--set
: Set the Git global user configuration.--view
: View the current Git global user configuration.--help
: Show help and usage information.
To set the Git global user:
python main.py --set username email
To view the Git global user configuration:
python main.py --view
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License. See the LICENSE
file for details.
To activate a virtual environment and install packages on different operating systems, follow these steps:
If you haven't created a virtual environment yet, use the venv
module, which comes bundled with Python 3.3 and later, to create one. Open your terminal or command prompt and navigate to your project directory. Then, run the following command:
python -m venv venv
This will create a new virtual environment named venv
in your project directory.
Once you have created the virtual environment, you need to activate it. This will modify your terminal or command prompt to use the Python interpreter and packages from the virtual environment.
venv\Scripts\activate
source venv/bin/activate
After activation, you will see (venv)
at the beginning of your terminal or command prompt, indicating that the virtual environment is active.
With the virtual environment activated, you can now install packages using pip
:
pip install package_name
Replace package_name
with the name of the package you want to install. The package will be installed within the virtual environment, keeping it isolated from the global Python installation.
When you're done working on your project or want to switch back to the global Python environment, you can deactivate the virtual environment. Simply run:
deactivate
This will return your terminal or command prompt to the standard Python environment.