https://github.com/lukasoppermann/environment
My dev environment
https://github.com/lukasoppermann/environment
Last synced: 7 months ago
JSON representation
My dev environment
- Host: GitHub
- URL: https://github.com/lukasoppermann/environment
- Owner: lukasoppermann
- Created: 2012-09-25T01:27:14.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2015-05-21T16:21:24.000Z (over 10 years ago)
- Last Synced: 2025-03-06T05:14:23.696Z (10 months ago)
- Language: Shell
- Homepage:
- Size: 3.63 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Environment
My development setup. This includes bash configs as well as a terminal theme and an atom package which includes a theme and some shortcuts.
# Setup
move the `.bash_profie` file to the root directory
```
cp .bash_profile ~/.bash_profile
```
# Knowledge about git
## Setup automatic deployment from github
### ssh/config
~/.ssh/config
> Host github.com
> User oppermann.lukas@googlemail.com
> Port 443
> Hostname ssh.github.com
### bash_profile
~/.bash_profile
> eval $(ssh-agent)
### clone git repo
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 --recursive
### deploy key
to authorise the server create a deploy key
1. cd ~/.ssh
2. `ssh-keygen -t rsa -C email@mail.com`
3. cat ~/.ssh/id_rsa.pub
4. github.com/user/repo/admin/keys > add key > paste key
### github.php
echo `git pull && git submodule update --init --recursive 2>&1`;
1. github.com/user/repo/admin/
2. Service Hooks
3. add WebHook URLs link to github.php
## Stop ssh access from asking for password
1. cd ~/.ssh
2. if id_rsa.pub does NOT exist:
`ssh-keygen -t rsa`
3. 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
4. ...
## git reset to origin master
git reset --hard origin/master