The following information will provide you the instructions to access OSC repositories.
- 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.
- Setup your git to connect with GitHub via SSH.
- 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
The following steps will clone the code in your local git and configure some common hooks. To clone:
-
Establish remote forks
- Visit each repository in the OSC Organization and click the Fork button to establish a remote fork for each repository.
-
Create OSC root folder to store the OSC repositories under home or opt directories of Linux OS file system:
mkdir /home/OSC
-
Copy the content of clone_repos.sh on your clipboard.
-
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.
- 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.
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.