Skip to main content

TrackIt is a basic version control system inspired by Git. It provides functionalities for creating commits, branches, tags, merging branches, and more.

Project description

TrackIt

TrackIt is a basic version control system inspired by Git. It provides functionalities for creating commits, branches, tags, merging branches, and more.

Installation

To install this package, run:

pip install .

Usage
TrackIt provides a command-line interface (CLI) for interacting with the version control system. Below are some of the commands you can use:

Initialize a Repository
To initialize a new TrackIt repository, run:

trackit init

Create a Snapshot
To create a snapshot of the current state of the repository, run:

trackit snapshot

Read a Snapshot To restore the repository to a previously stored snapshot, run:

trackit read-snapshot <snapshot_id>

Commit Changes
To commit changes to the repository with a message, run:

trackit commit -m "Your commit message"

View Commit Log
To display the commit log, run:

trackit log

Checkout a Commit or Reference
To checkout a specific commit, run:

trackit checkout <commit_id_or_ref>

or reference(tag or branch), run:

trackit checkout -r <ref>

Create a Branch To create a new branch, run:

trackit branch <branch_name>

Tag a Commit
To tag a specific commit with a name, run:

trackit tag <tag_name> <commit_id>

Show Commit Details
To show the content of a specific commit, run:

trackit show <commit_id>

Display Differences Between Commits
To display the differences between two commits, run:

trackit diff <from_commit_id> <to_commit_id>

Merge Branches
To merge two branches, run:

trackit merge <other_branch> <head_branch>

Find Common Ancestor of Two Commits
To find the common ancestor of two commits, run:

trackit merge-base <commit_id1> <commit_id2>

Status
View the status, run:

trackit status

Reset
To reset the repository to a specific commit, run:

trackit reset <commit_id>

Find Common Ancestor of Two Commits To find the common ancestor of two commits, run:

trackit merge-base <commit_id1> <commit_id2>

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Acknowledgements

This project is inspired by Git and aims to provide similar functionalities for version control.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trackit_vcs-1.0.1.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trackit_vcs-1.0.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file trackit_vcs-1.0.1.tar.gz.

File metadata

  • Download URL: trackit_vcs-1.0.1.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for trackit_vcs-1.0.1.tar.gz
Algorithm Hash digest
SHA256 02f24bac7aee6822bc9f8e66aaceb72abc72fb73e343c214418462aae426d001
MD5 1a4f628bd38b52ec09cf7c797e0e8bdd
BLAKE2b-256 018c254f9bc61018415d841273619615889ffd7299855ba61dd40d44098478c4

See more details on using hashes here.

File details

Details for the file trackit_vcs-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: trackit_vcs-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for trackit_vcs-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e8f4b784b09db3c291293e8aff597b7627f296c6b54a7a4b1d54d3af505bf09
MD5 853d370563c8265a8c1c0ec4a446900b
BLAKE2b-256 91cac3f4ce23e91fc83e019f39116bf737dc63b6ca428cc50237795c2e826128

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page