gitfs/
lib.rs

1pub mod git;
2
3#[test]
4pub fn test_main() {
5    let mut git = git::Git::new("https://github.com/gin-gonic/gin.git", "gin.git");
6    git.branch("master");
7    git.write_file("LICENSE", "MIT License".to_string());
8    let content = git.read_file("README.md");
9    git.write_file("README.mdx", format!("{}, MIT License", content));
10    git.commit("update README.mdx -> 3");
11    println!("{:?}", git);
12}