diff options
-rw-r--r-- | README.md | 26 | ||||
-rwxr-xr-x | scripts/code_manager_config_version.rb | 1 | ||||
-rwxr-xr-x | scripts/config_version.rb | 1 |
3 files changed, 25 insertions, 3 deletions
@@ -6,7 +6,7 @@ Table of Contents * [Copy This Repo Into Your Own Git Server](#copy-this-repo-into-your-own-git-server) * [GitLab](#gitlab) * [Stash](#stash) - * [Github](#github) + * [GitHub](#github) Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc.go) @@ -69,6 +69,26 @@ The major points are: Coming soon! -### Github +### GitHub -Coming soon! +1. Prepare your local git client to authenticate with GitHub.com or a local GitHub Enterprise instance. + - https://help.github.com/articles/generating-ssh-keys/ + - https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/ + +2. Create a repository called `control-repo` in your user account or organization. Ensure that "Initialize this repository with a README" is not selected. + - https://help.github.com/articles/creating-a-new-repository/ + +3. Make a note of your repository URL (HTTPS or SSH, depending on your security configuration). + +4. Clone this control repository to your laptop/workstation: + - `git clone <repository url>` + - `cd control-repo` + +5. Remove this repository as the origin remote: + - `git remote remove origin` + +6. Add your internal repository as the origin remote: + - `git remote add origin <url of your github repository>` + +7. Push the production branch of the repository from your machine up to your git server + - `git push origin production` diff --git a/scripts/code_manager_config_version.rb b/scripts/code_manager_config_version.rb index 7ed5680..2c9cb62 100755 --- a/scripts/code_manager_config_version.rb +++ b/scripts/code_manager_config_version.rb @@ -1,3 +1,4 @@ +#!/usr/bin/env ruby require 'json' environmentpath = ARGV[0] diff --git a/scripts/config_version.rb b/scripts/config_version.rb index 30b6b67..3016a27 100755 --- a/scripts/config_version.rb +++ b/scripts/config_version.rb @@ -1,3 +1,4 @@ +#!/usr/bin/env ruby begin require 'rugged' rescue LoadError => e |