Skip to content

Instantly share code, notes, and snippets.

// Initialise vars
var gitOutput = "",
branch = null;
// Start reading stdin
process.stdin.resume();
// Store read in chunks
process.stdin.on('data', function (chunk) {
gitOutput += chunk;
// Initialise vars
var gitOutput = "",
branch = null;
// Start reading stdin
process.stdin.resume();
// Store read in chunks
process.stdin.on('data', function (chunk) {
gitOutput += chunk;
// Initialise empty strings
var gitOutput = "",
branch = null;
// Start reading stdin
process.stdin.resume();
// Store read in chunks
process.stdin.on('data', function (chunk) {
gitOutput += chunk;
mkdir /path/to/local-repos
git clone ssh://your.remote.server/path/to/git-repos/NewRepoName
git remote rename origin deploy
mkdir /path/to/local-repos
git clone ssh://your.remote.server/path/to/git-repos/NewRepoName
git remote rename master deploy
mkdir /path/to/local-repos
git clone ssh://your.remote.server/path/to/git-repos/NewRepoName
mkdir /path/to/git-repos/NewRepoName
cd /path/to/git-repos/NewRepoName
git init --bare
mkdir /path/to/git-repos/NewRepoName
cd /path/to/git-repos/NewRepoName
git init --bare
mkdir /path/to/git-repos/NewRepoName
cd /path/to/git-repos/NewRepoName
git init --bare
#!/usr/bin/env node
console.log("I'm JavaScript");