alwaz-shahid / git-config

This is a Python CLI tool to manage Git global user configuration.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Git Config Tool

This is a Python CLI tool to manage Git global user configuration.

Installation

  1. Ensure you have Python and Git installed on your system.
  2. Clone or download the repository.
  3. Navigate to the repository directory.
  4. Run the script using Python:
  5. python main.py

Usage

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.

Examples

To set the Git global user:

python main.py --set username email

To view the Git global user configuration:

python main.py --view

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Virtual Environment Setup Guide

To activate a virtual environment and install packages on different operating systems, follow these steps:

Create a Virtual Environment (if not already created)

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.

Activate the Virtual Environment

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.

On Windows

venv\Scripts\activate

On Linux/Mac

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.

Install Packages

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.

Deactivate the Virtual Environment

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.

About

This is a Python CLI tool to manage Git global user configuration.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%