This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialise vars | |
var gitOutput = "", | |
branch = null; | |
// Start reading stdin | |
process.stdin.resume(); | |
// Store read in chunks | |
process.stdin.on('data', function (chunk) { | |
gitOutput += chunk; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialise vars | |
var gitOutput = "", | |
branch = null; | |
// Start reading stdin | |
process.stdin.resume(); | |
// Store read in chunks | |
process.stdin.on('data', function (chunk) { | |
gitOutput += chunk; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /path/to/local-repos | |
git clone ssh://your.remote.server/path/to/git-repos/NewRepoName | |
git remote rename origin deploy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /path/to/local-repos | |
git clone ssh://your.remote.server/path/to/git-repos/NewRepoName | |
git remote rename master deploy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /path/to/local-repos | |
git clone ssh://your.remote.server/path/to/git-repos/NewRepoName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /path/to/git-repos/NewRepoName | |
cd /path/to/git-repos/NewRepoName | |
git init --bare |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /path/to/git-repos/NewRepoName | |
cd /path/to/git-repos/NewRepoName | |
git init --bare |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /path/to/git-repos/NewRepoName | |
cd /path/to/git-repos/NewRepoName | |
git init --bare |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
console.log("I'm JavaScript"); |