import ShGit
let git = Git()
// check if repo is clean
guard git.isClean() else {
print("git repo is not clean")
return
}
let root = try git.root() // Fetch the root of the git repo
// ...
// do something with the git root
// such as load an asset or
// run a script
ShGit
Git wrapper for Swift powered by Sh.
Example
Example usage
Example
Package.swift