Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alicewriteswrongs/pit.py
It's the pits!
https://github.com/alicewriteswrongs/pit.py
Last synced: 25 days ago
JSON representation
It's the pits!
- Host: GitHub
- URL: https://github.com/alicewriteswrongs/pit.py
- Owner: alicewriteswrongs
- Created: 2015-07-10T20:22:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-11-08T15:40:29.000Z (about 3 years ago)
- Last Synced: 2024-10-30T06:59:35.146Z (2 months ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pit.py
It's a gitlike VCS in Python! Wow! It's called pit because it's not great.
Pit is written in Python 3, and it expects it to be at /usr/bin/python3. If
your python 3 is in a different place you can probably either edit pit.py or
make a symlink.It makes it a bit easier to use if you do:
sudo ln -s /path/to/pit.py /usr/bin/pit
So you can do:
pit init
To create a new repo (in `.pit`).
pit add myfile
to stage `myfile`.
pit commit author 'commit message'
to write a commit object, and
pit status
To see the currently staged files.
pit info commit
where commit is the hash of a commit your interested in, to get information
about who committed it and which files were included.pit branch
To see info about the branches, and
pit branch branchname authorTo create a new branch `branchname` with author `author`. Then you can do:
pit checkout object
to check out either a branch or a commit (there isn't a whole lot of difference
between these, except that branches have human-readable names).I also added an alias feature:
pit alias name commit
This just lets you make a human readable name for a commit, which you can
use to checkout that commit later.That's about it!
### TODO:
- stash
- history/git log
- diff