@git.checkout()
APIGit注解js.git
执行git checkout
操作
调用方法
- (path) -> Async
- (path, refish) -> Async
- (path, refish, force) -> Async
参数介绍
- path: StringGit根目录
- refish: String可空可选默认"HEAD"Git的RefID,可以是commit、branch、tag
- force: String可空可选默认false是否强制更新文件
关联API
- @git()
- @git.blame()
- @git.clone()
- @git.fetch()
- @git.reset()
- @git.resolveRefish()
- @git.status()