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
Configure Git
-
Configure git global settings
$ git config --global user.name "My Name"
$ git config --global user.email "[email protected]"
$ git config --global credential.helper osxkeychain
-
Create new SSH keys for GitHub
$ ssh-keygen -t rsa -b 4096 -C "[email protected]" -f ~/.ssh/github.id_rsa
-
Modify SSH config for remote/local users
$ vi ~/.ssh/config
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsaHost github.com
HostName github.com
PreferredAuthentications publickey
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/github.id_rsa
- Add Key to SSH-Agent
$ ssh-add -K ~/.ssh/github.id_rsa
$ ssh-add -K ~/.ssh/id_rsa
Clone and Setup Local Repository
- Change the current working directory to the location where you want the cloned directory to be made.
- Clone the "development" branch of the repository from GitHub.
$ git clone -b development ssh://[email protected]/OneFortyEight/onefortyeight-wp-theme.git
- Change directory to the repository and verify
$ git remote -v