Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 2.14 KB

repo_access.md

File metadata and controls

60 lines (38 loc) · 2.14 KB

Accessing OSC Repositories

The following information will provide you the instructions to access OSC repositories.

Requirements

  • Git: Download and Install git.

Note: If installing for Windows, Git Bash is included in the installation. Shell commands mentioned in this document must be completed using Git Bash.

Connecting To GitHub

SSH Configuration

  1. Setup your git to connect with GitHub via SSH.
  2. Once you have added your SSH key and registered it on your GitHub account, you should be able to run the following command successfully:
ssh -T git@github.com
Hi YOUR_USERNAME! You've successfully authenticated, but GitHub does not provide shell access

Getting The Code

The following steps will clone the code in your local git and configure some common hooks. To clone:

  1. Establish remote forks

    • Visit each repository in the OSC Organization and click the Fork button to establish a remote fork for each repository.
  2. Create OSC root folder to store the OSC repositories under home or opt directories of Linux OS file system:

mkdir /home/OSC
  1. Copy the content of clone_repos.sh on your clipboard.

  2. Create a local script file on the OSC root:

cd /home/OSC
vi clone-repos.sh
# Paste the content clone_repos.sh inside this file, set the variable, username, to your GitHub username, and save.
  1. Clone the repositories:
./clone-repos.sh

Note: If you choose to clone the repositories differently ensure to set the git hooks under the /hooks/ directory for each repository, for details see this script.

Useful Aliases

Update your git aliases in ~/.gitconfig with git-aliases. While these aliases are optional they can be very useful as they simplify common git operations.

Next Steps