- git コマンドの Unity 実装
- Unity 2017.1
- git
- hub (Optional)
$ npm install github:umm/git
add
branch
checkout
commit
push
rev-parse
rm
pull-request
hub
コマンドを利用
Git.Add(new [] { "hoge.txt", "fuga.cs", });
Git.Commit("message for commit");
Git.Push("any_branch_name");
// 書き方を統一するために、空の Unit を吐き出すところから開始している
Observable.Return(Unit.Default)
.SelectMany(_ => GitAsync.Add(new [] { "hoge.txt", "fuga.cs", }))
.SelectMany(_ => GitAsync.Commit("message for commit"))
.SelectMany(_ => GitAsync.Push("any_branch_name"))
.Subscribe();
Copyright (c) 2017-2018 Tetsuya Mori
Released under the MIT license, see LICENSE.txt