# There are two ways to get a git repository
# Assume a properly configured git repository is set up at <remoteURL>
### 1. Initializing a repo in an existing directory
# Create the git repository skeleton in the .git subdirectory
git init
git add <some_file>
git commit -m "initial commit"
# Add a new remote repo called remoteName
git remote add <remoteName> <remoteURL>
# Publish your local branch master to the remote master
# and set your local master to trach the remote master
git push -u <remoteName> master
### 2. Cloning an existing repository
# Clone the remote repo
git clone <remoteURL>
# Set your local master to trach the remote master
git checkout master
git branch -u <remoteName>/master