Source Code Management with GitHub - OneFortyEight/onefortyeight-wp-theme GitHub Wiki

GitHub URL:

https://github.com/OneFortyEight/onefortyeight-wp-theme

Setup Git & GitHub

Install Git

Git for Mac

Configure Git

  1. Configure git global settings
    $ git config --global user.name "My Name"
    $ git config --global user.email "[email protected]"
    $ git config --global credential.helper osxkeychain

  2. Create new SSH keys for GitHub
    $ ssh-keygen -t rsa -b 4096 -C "[email protected]" -f ~/.ssh/github.id_rsa

  3. Modify SSH config for remote/local users
    $ vi ~/.ssh/config

Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa

Host github.com
HostName github.com
PreferredAuthentications publickey
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/github.id_rsa

  1. Add Key to SSH-Agent
    $ ssh-add -K ~/.ssh/github.id_rsa
    $ ssh-add -K ~/.ssh/id_rsa

Clone and Setup Local Repository

  1. Change the current working directory to the location where you want the cloned directory to be made.
  2. Clone the "development" branch of the repository from GitHub.
    $ git clone -b development ssh://[email protected]/OneFortyEight/onefortyeight-wp-theme.git
  3. Change directory to the repository and verify
    $ git remote -v