Get it here
Requires CCTweaks and ComputerCraft 1.8pr0
In 2.1 I've added a program which allows you to use git from the command line. Unfortunately this requires a little bit of setup on each new computer - simply run the following:
.ccgit/autorun
This will generate a program in the startup program which will set the appropriate shell variables to allow the program to function in any directory. If the startup file is ever deleted, don't worry! You can simply re-run the autorun.lua file.1.x post
Ever wanted to be able to push and pull your work from github? Of course you have! And now you can!!CCGit is an addon to computercraft (or rather, CCTweaks…) that adds several basic git functions. These include the ability to clone, push, pull, and commit to a real git repository!
Known Bugs:
None!
Installation:
Download from github, place in mods folder. Requires CCTweaks and ComputerCraft, versions linked in release on github.
Usage:
If you are familiar with Git, you probably know how to use this. Documentation right now is pretty sparse, I will eventually write more. Currently I support the following:
Spoiler
ccgit.commit( gitDir, message )
gitDir is the location of the git folder, eg "lama/.git"message is the commit message
ccgit.pull( gitDir, remote )
gitDir is the location of the git folder, eg "lama/.git"remote is the name of the remote to pull from (eg "origin")
ccgit.push( gitDir, remote )
gitDir is the location of the git folder, eg "lama/.git"remote is the name of the remote to push to (eg "origin")
ccgit.clone( remote, directory )
remote is the URI of the git, eg "https://github.com/KingofGamesYami/LAMA.git"directory is the name of the directory to clone to (eg "lama")
ccgit.init( directory )
directory is the name of the directory to initialize a git repository in (eg "lama")
ccgit.addRemote( gitDir, name, uri )
gitDir is the location of the git folder, eg "lama/.git"name is the name of the remote (eg "origin")
uri is the remote's URI, eg "https://github.com/KingofGamesYami/LAMA.git"
ccgit.getRemoteNames( gitDir )
gitDir is the location of the git folder, eg "lama/.git"
ccgit.setCredentials( username, password )
username is your Git account name (eg "KingofGamesYami")password is, well, your password. No example for this one :P/>/>/>/>
ccgit.addAll( gitDir )
gitDir is the location of the git folder, eg "lama/.git"