Created
April 29, 2012 06:35
-
-
Save alghanmi/2535768 to your computer and use it in GitHub Desktop.
Showing Your Code to The World
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
| #Replace the information in double quotes with your info | |
| export USER_EMAIL="[email protected]" | |
| export USER_NAME="myFirstName myLastName" | |
| export HW5_LOCATION="~/hw5" | |
| #Generate public/private key-pair on aludra | |
| ssh-keygen -t rsa -b 4096 -C "$USER_EMAIL" | |
| #Setup git in PATH | |
| echo "source /usr/usc/git/default/setup.csh" >> ~/.cshrc | |
| source ~/.cshrc | |
| #Git User information | |
| git config --global user.name "$USER_NAME" | |
| git config --global user.email "$USER_EMAIL" | |
| git config --global color.ui auto | |
| git config --global color.diff auto | |
| git config --global color.branch auto | |
| # Create a GitHub account on https://github.com/plans | |
| # Copy the output of the following command and paste it into | |
| # "Account Settings" > "SSH Keys" > "Add SSH key" | |
| cat ~/.ssh/id_rsa.pub | |
| # Test your GitHub connection | |
| ssh -T [email protected] | |
| # Create a GitHub Repository and put the SSH URL for the repository in the following command | |
| export GITHUB_REPO_URL="xxxxxxx" | |
| # Clone your repository | |
| git clone $GITHUB_REPO_URL myGame | |
| cd myGame | |
| mv $HW5_LOCATION/ . | |
| git commit -a -m "Importing my game" | |
| git push | |
| # Now, put your GitHub username and Git Read-Only URL in the spreadsheet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment