Crates.io | gitclass |
lib.rs | gitclass |
version | 0.8.0 |
source | src |
created_at | 2016-10-02 00:02:00.676314 |
updated_at | 2018-08-26 05:09:12.99469 |
description | Tool for teachers to manage classes using git |
homepage | |
repository | https://github.com/mttaggart/gitclass |
max_upload_size | |
id | 6683 |
size | 12,557 |
Simple tool for managing student Git repositories.
This project works, but is a learning project for me.
You can either download the compiled executable from the releases
Or build from source using Rust!
Follow the instructions here to install Rust, and here to install Cargo, Rust's build system.
From here, you can simply use Cargo to get the project:
cargo install gitclass
This requires ~/.cargo
to be in your PATH
to run.
Clone the repo:
git clone https://github.com/mttaggart/gitclass
Then enter the new folder. Use Cargo to build the project
cargo build --release
This will compile the project on your platform. You can then copy the result to a directory known to your PATH
. For example:
sudo cp target/release/gitclass /usr/local/bin/
gitclass init
This begins the process of creating a class. You'll be asking for a name, description, and master repository for the class. The name and description will be saved in gitclass.json
, and the master repo will be cloned within the current folder.
gitclass add
This will prompt for name
and repo
for the student, then clone the given repo into a folder of the name provided.
Perform this every time you want to ensure you have the latest commits from your students.
gitclass update
This will update all repos.
This feature is a little hacky as I figure out the git2
library for Rust.
gitclass remove $name
gitclass log $student
This will get the commit log from the master branch. Just vanilla git log for now. For more detailed info, run git log
inside the students' folder.