0.0.4 • Published 7 years ago

git-helper v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

git操作辅助工具

my love

使用案例

let GitHelper = appUtils.requireCommon('GitHelper');
let remotePath = 'git@xxxxxx.git';
let localPath = 'D:/aaaccccbbbbb';
 route.get('/git', async(ctx, next) => {
     let gitHelper = GitHelper.create(localPath);
     await gitHelper.clone(remotePath, localPath, 'dev');
     ctx.body = global.JSONResponse(1, 11, 'clone成功');
 });
 route.get('/git/reset', async(ctx, next) => {
     let gitHelper = GitHelper.create(localPath);
     await gitHelper.reset('dev');
     ctx.body = global.JSONResponse(1, 11, '重置为dev分支');
 });
0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.0

9 years ago