Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-first-commit

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-first-commit - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

30

index.js
'use strict';
var exec = require("child_process").exec;
var exec = require("shelljs").exec;

@@ -9,17 +9,19 @@ module.exports = gitCommit;

var command = 'git add -A && git commit -m "' + message + '"';
var intialPush = 'git push origin -u master'
exec(command, function(err) {
if (err) {
cb(err);
let { stdout, stderr, code } = exec(command, { silent: true });
//console.log(stdout, stderr, code )
if(stderr) {
cb(err);
return;
} else {
var intialPush = 'git push origin -u master';
let { stdout, stderr, code } = exec(command, { silent: true });
console.log(stdout, stderr, code )
if (stderr) {
cb(err)
return;
} else {
cb(null, true);
}
exec(intialPush, function(err, status) {
if (err) {
cb(err)
return;
}
cb(null, true);
});
});
}
}
{
"name": "git-first-commit",
"version": "0.1.0",
"version": "1.0.0",
"description": "github intial commit",

@@ -29,3 +29,4 @@ "bugs": {

"dependencies": {
"minimist": "^1.2.0"
"minimist": "^1.2.0",
"shelljs": "^0.7.8"
},

@@ -32,0 +33,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc