This is a simple implementation of Git
Future Scope :
- Adding makefile
- Rewrite of checkout
To run please compile to object file :
gcc -o git.o vcs.c
It will generate a git.o object file create a alias so you dont need to run everytime
Now to use it
- Initilize a repository using
git init
- add any files to staging area using
git add <file1name> <file2name> ...
- To check what are being tracked
git status
- commit any changes using
git commit -m "commit message"
- To see all commits
git log
- To revert back changes (needs improvement)
currently it is only reverting changes only to that commit
git checkout commithash