GithubHelp home page GithubHelp logo

binarybirds / git-kit Goto Github PK

View Code? Open in Web Editor NEW
20.0 2.0 7.0 7 KB

GitKit is a Swift wrapper around the git command line interface.

License: MIT License

Dockerfile 0.60% Swift 99.40%
swift swift-5 git

git-kit's Introduction

GitKit (๐Ÿฑ)

GitKit is a Swift wrapper around the git command line interface.

Usage

Some basic examples:

import GitKit

try Git().run(.cmd(.config, "--global user.name"))

let git = Git(path: "~/example/")

try git.run(.cmd(.initialize))
try git.run(.cmd(.status))
try git.run(.cmd(.branch, "-a"))
try git.run(.cmd(.pull))

try git.run(.clone(url: "https://gitlab.com/binarybirds/shell-kit.git"))
try git.run(.commit(message: "some nasty bug fixed"))
try git.run(.log(1))
try git.run(.tag("1.0.0"))
try git.run(.pull(remote: "origin", branch: "master"))
try git.run(.push(remote: "origin", branch: "master"))
try git.run(.create(branch: "dev"))
try git.run(.checkout(branch: "master"))
try git.run(.merge(branch: "dev"))

try git.run(.raw("log -2"))
try git.run(.raw("rebase -i <hash>"))

Install

Just use the Swift Package Manager as usual:

.package(url: "https://github.com/binarybirds/git-kit", from: "1.0.0"),

Don't forget to add "GitKit" to your target as a dependency:

.product(name: "GitKit", package: "git-kit"),

That's it.

License

WTFPL - Do what the fuck you want to.

git-kit's People

Contributors

tib avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.