Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prayag2003/tig-version-control-system
Building the clone of Git as "Tig" as fun-time spending activity in Weekend :)
https://github.com/prayag2003/tig-version-control-system
git git-clone golang tig version-control
Last synced: 23 days ago
JSON representation
Building the clone of Git as "Tig" as fun-time spending activity in Weekend :)
- Host: GitHub
- URL: https://github.com/prayag2003/tig-version-control-system
- Owner: Prayag2003
- Created: 2024-06-02T08:28:14.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-14T14:50:29.000Z (5 months ago)
- Last Synced: 2024-08-14T16:18:46.889Z (5 months ago)
- Topics: git, git-clone, golang, tig, version-control
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TIG: A Lightweight Git Clone
**tig** is a simple version control system inspired by Git, offering basic functionalities like adding, committing, cloning, initializing repositories, and viewing logs. Use `tig` to manage your project’s version control with ease.
## Features
- **Add**: Stage files for commit.
- Usage: `tig add ` or `tig add .` to stage all changes.
- **Commit**: Commit staged changes with a message.- Usage: `tig commit -m "Your commit message"`
- **Clone**: Clone a repository from a remote source.
- Usage: `tig clone `
- **Init**: Initialize a new repository.
- Usage: `tig init`
- **Log**: View the commit history.
- Usage: `tig log`## Installation
Follow these steps to install and use **tig**:
1. **Install Go**:
- Make sure you have Go installed on your system. You can download and install it from [golang.org](https://golang.org/dl/).
2. **Clone the Repository**:
- Clone the **tig** repository:
```bash
git clone https://github.com/Prayag2003/tig-version-control-system
```3. **Navigate to the `tig` Directory**:
- Change directory to the `tig` command source:
```bash
cd cmd/tig
```4. **Set Up an Alias**:
- Create an alias for `tig` to run it easily from the command line:
```bash
alias tig="go run main.go"
```5. **Start Using `tig`**:
- Now you can use `tig` just like Git:
```bash
tig init
tig add
tig commit -m "Your commit message"
```## Contributing
Contributions are welcome! Feel free to open issues or submit pull requests to improve **tig**.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.