https://github.com/obed0101/gitd
gitd is a lightweight script designed to simplify the process of downloading Git repositories from the command line. It provides an easy-to-use interface for cloning repositories with options to specify branches and target directories.
https://github.com/obed0101/gitd
automation bash collaboration command-line developer-tools development-tools git gitclone github github-api github-cli open-source repository-cloning repository-management scripted-workflows scripting shell-script workflow-automation zsh
Last synced: 16 days ago
JSON representation
gitd is a lightweight script designed to simplify the process of downloading Git repositories from the command line. It provides an easy-to-use interface for cloning repositories with options to specify branches and target directories.
- Host: GitHub
- URL: https://github.com/obed0101/gitd
- Owner: Obed0101
- License: apache-2.0
- Created: 2023-11-23T05:05:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-05T05:08:17.000Z (7 months ago)
- Last Synced: 2025-03-24T08:47:58.035Z (about 1 month ago)
- Topics: automation, bash, collaboration, command-line, developer-tools, development-tools, git, gitclone, github, github-api, github-cli, open-source, repository-cloning, repository-management, scripted-workflows, scripting, shell-script, workflow-automation, zsh
- Language: Shell
- Homepage:
- Size: 55.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
π gitd
Simplify Git repository downloads with ease!
Report Bug
.
Request Feature
     
## π Table Of Contents
- [About the Project](#π-about-the-project)
- [Features](#β¨-features)
- [Why gitd?](#π€-why-gitd)
- [Built With](#π οΈ-built-with)
- [Getting Started](#π-getting-started)
- [Prerequisites](#π-prerequisites)
- [Installation](#π οΈ-installation)
- [Usage](#π οΈ-usage)
- [Options](#βοΈ-options)
- [Customizing Repository Location](#π-customizing-repository-location)
- [Examples](#π-examples)
- [Roadmap](#πΊοΈ-roadmap)
- [Contributing](#π€-contributing)
- [Creating A Pull Request](#π-creating-a-pull-request)
- [License](#π-license)
- [Authors](#π-authors)## π About The Project
This project provides a simple Zsh script (`gitd`) to streamline the process of downloading Git repositories. It offers a user-friendly command-line interface to quickly clone repositories with customizable settings.
## β¨ Features
- π **Easy Cloning:** Quickly clone Git repositories with just a few commands.
- π **Customizable Base Directory:** Choose your preferred base directory for downloaded repositories.
- π¨ **Stylish Logs:** Colorful and informative logs for a better user experience.
- βοΈ **Configuration Options:** Customize the script behavior using environment variables.
- βοΈ **Setup Option:** Set up the downloaded repository, including installing dependencies.## π€ Why gitd?
- **Simplicity:** gitd is designed to be straightforward and easy to use.
- **Style:** Enjoy stylish and colorful logs during the cloning process.
- **Configurability:** Tailor gitd to your preferences with customizable options.## π οΈ Built With
- Zsh (Z shell)
## π Getting Started
To get started with `gitd`, follow the instructions below.
### π Prerequisites
- Zsh or Bash installed on your system
- GitHub CLI (`gh`) for retrieving repository details### π οΈ Installation
You can install `gitd` by running the following command in your terminal:
```bash
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Obed0101/gitd/main/install.sh)"
```## π οΈ Usage
Use the gitd script with the following syntax:
```sh
gitd [options] [options]
```Replace with the URL of the Git repository you want to download. Optionally, you can specify a branch.
### βοΈ Options:
| Option | Description |
| --------------- | -------------------------------------------------------------------- |
| `-h, --help` | Show help message. |
| `-v, --version` | Display the script version. |
| `-s, --setup` | Set up the downloaded repository, including installing dependencies. |
| `-b, --branch` | Specify the branch for cloning. |> **Note:** The setup option is currently compatible with the following package managers and systems:
- **npm:** Node.js package manager
- **yarn:** Fast, reliable, and secure dependency management
- **pnpm:** Fast, disk space efficient package manager
- **bundle:** Ruby dependency manager
- **mvn:** Apache Maven for Java projects
- **go:** Go programming language
- **gcc:** GNU Compiler Collection (for C/C++ projects)## π Customizing Repository Location
By default, gitd saves repositories in the $HOME/Repos directory. You can customize this location by setting the GITD_BASE_DIR environment variable. For example:
```sh
export GITD_BASE_DIR=~/my_repos
```Add this line to your shell configuration file (e.g., .zshrc or .bashrc) to make it persistent across sessions.
## π Examples
- Clone a repository with the default settings: `gitd https://github.com/Obed0101/gitd`
- Specify a branch for cloning: `gitd -b main https://github.com/Obed0101/gitd`
- Set up a repository after cloning: `gitd -s https://github.com/example/repo`
- Customize the base directory: `export GITD_BASE_DIR=~/Downloads`## πΊοΈ Roadmap
See the [open issues](https://github.com/Obed0101/gitd/issues) for a list of proposed features (and known issues).
## π€ Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.
- If you have suggestions for adding or removing projects, feel free to [open an issue](https://github.com/Obed0101/gitd/issues/new) to discuss it, or directly create a pull request after you edit the _README.md_ file with necessary changes.
- Please make sure you check your spelling and grammar.
- Create individual PR for each suggestion.
- Please also read through the [Code Of Conduct](https://github.com/Obed0101/gitd/blob/main/CODE_OF_CONDUCT.md) before posting your first idea as well.### π Creating A Pull Request
1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request## π License
Distributed under the Apache License. See [LICENSE](https://github.com/Obed0101/gitd/blob/main/LICENSE) for more information.
## π Authors
- **Obed0101** - _Fullstack Developer_ - [Obed0101](https://github.com/Obed0101) - _Built gitd_
- **AlphaTechnolog** - _Fullstack Developer_ - [AlphaTechnolog](https://github.com/AlphaTechnolog) - _Developer/Tester of gitd_