My development setup. This includes bash configs as well as a terminal theme and an atom package which includes a theme and some shortcuts.
move the .bash_profie
file to the root directory
cp .bash_profile ~/.bash_profile
~/.ssh/config
Host github.com User oppermann.lukas@googlemail.com Port 443 Hostname ssh.github.com
~/.bash_profile
eval $(ssh-agent)
git clone --recursive git://github.com/mysociety/whatdotheyknow.git
recursive initialises submodules
If your submodule was added in a branch be sure to include it in your clone command... git clone -b <branch_name> --recursive
to authorise the server create a deploy key
- cd ~/.ssh
ssh-keygen -t rsa -C email@mail.com
- cat ~/.ssh/id_rsa.pub
- github.com/user/repo/admin/keys > add key > paste key
echo git pull && git submodule update --init --recursive 2>&1
;
- github.com/user/repo/admin/
- Service Hooks
- add WebHook URLs link to github.php
- cd ~/.ssh
- if id_rsa.pub does NOT exist:
ssh-keygen -t rsa
- if ssh-copy-id is installed
ssh-copy-id '-p 2222 -i id_rsa.pub user@host'
(do not forget the '') else open file and copy key - ...
git reset --hard origin/master