1549469775 5 years ago
parent
commit
7ec318d6e2
  1. 8
      app.js
  2. 6
      package.json
  3. 3
      readme

8
app.js

@ -55,7 +55,9 @@ function getBranch() {
}) })
} }
(async () => { module.exports = {
up() {
async () => {
if (haveGit) { if (haveGit) {
exec('git remote', function (error, stdout, stderr) { exec('git remote', function (error, stdout, stderr) {
// 获取命令执行的输出 // 获取命令执行的输出
@ -155,4 +157,6 @@ function getBranch() {
console.log('git项目初始化成功'); console.log('git项目初始化成功');
}); });
} }
})(); }
}
}

6
package.json

@ -1,5 +1,5 @@
{ {
"name": "git-up", "name": "gittttup",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "app.js", "main": "app.js",
@ -7,9 +7,7 @@
"type": "git", "type": "git",
"url": "http://git.poorman.top/topuser/eyc.git" "url": "http://git.poorman.top/topuser/eyc.git"
}, },
"scripts": { "scripts": {},
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "ISC",

3
readme

@ -0,0 +1,3 @@
## 自用的 请勿下载
自用GIT一键多源提交
Loading…
Cancel
Save