https://github.com/platypew/fgit
A crappier version of Git
https://github.com/platypew/fgit
git ict1009 vcs
Last synced: 3 months ago
JSON representation
A crappier version of Git
- Host: GitHub
- URL: https://github.com/platypew/fgit
- Owner: PlatyPew
- License: agpl-3.0
- Created: 2022-03-15T14:36:09.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-08T13:07:02.000Z (about 3 years ago)
- Last Synced: 2025-01-08T10:45:07.429Z (4 months ago)
- Topics: git, ict1009, vcs
- Language: C++
- Homepage:
- Size: 242 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fake Git
A crappier version of git
## Sub-commands
- `init`: initialises the fgit repo
- `status`: list status of file (created, modified or deleted)
- `log`: shows the commit graph
- `diff`: shows the diff between current commit and workspace (binary files will be truncated)
- `commit`: saves a snapshot of the current workspace by specifying what files to add
- `reset`: reverts back to a commit and updating the contents in the workspace## Building
You can download the binaries [here](https://github.com/PlatyPew/Fake-Git/releases) (macOS and Linux only)
```sh
# Cloning the repo
git clone --recurse-submodules https://github.com/PlatyPew/Fake-Git.git# Configure CMake
cmake -B build -DCMAKE_CXX_COMPILER=clang++# Build Cmake
cmake --build build # You can add -j to speed up compilation# Cleanup
cmake --build build --target clean
```## Running
```sh
# Init
fgit init
``````sh
# Status
fgit status
``````sh
# Log
fgit log [commit id]
``````sh
# Diff
fgit diff
``````sh
# Commit
fgit commit [files]
``````sh
# Reset
fgit reset [commit hash]
```