Create a new authentication credentials
cd ~/.ssh && ssh-keygen
cat anthonybeckett_id.pub | pbcopy
git config --global user.name "Anthony Beckett"
git config --global user.email [email protected]
ssh-add ~/.ssh/anthonybeckett_id
You can then create a new project…
cd ~/Projects/
mkdir badgercam
Create new git project the command (alternatively do this step on Bitbucket if you prefer):
git init badgercam
Navigate to the project root folder
cd badgercam
git clone [email protected]:AnthonyBeckett/badgercam.git
If you are using multiple git accounts (for example personal and work accounts) then you may need to run the following before you can connect to a private repository.
git config --global user.name "Anthony Beckett"
git config --global user.email [email protected]
ssh-add ~/.ssh/anthonybeckett_id