create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| # Deploying a Sinatra app to Heroku | |
| ## Database | |
| The location of the database Heroku provides can be found in the environment | |
| variable DATABASE_URL. Check the configure-block of toodeloo.rb for an example | |
| on how to use this. | |
| ## Server | |
| Heroku is serving your apps with thin, with means you have all your thin goodness available, | |
| such as EventMachine. |
| # If you work with git, you've probably had that nagging sensation of not knowing what branch you are on. Worry no longer! | |
| export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ " | |
| # This will change your prompt to display not only your working directory but also your current git branch, if you have one. Pretty nifty! | |
| # ~/code/web:beta_directory$ git checkout master | |
| # Switched to branch "master" | |
| # ~/code/web:master$ git checkout beta_directory | |
| # Switched to branch "beta_directory" |
| " Sticky shift in English keyboard."{{{ | |
| " Sticky key. | |
| inoremap <expr> ; <SID>sticky_func() | |
| cnoremap <expr> ; <SID>sticky_func() | |
| snoremap <expr> ; <SID>sticky_func() | |
| function! s:sticky_func() | |
| let l:sticky_table = { | |
| \',' : '<', '.' : '>', '/' : '?', | |
| \'1' : '!', '2' : '@', '3' : '#', '4' : '$', '5' : '%', |
| # vi: ft=dosini | |
| [user] | |
| name = Pavan Kumar Sunkara | |
| email = [email protected] | |
| username = pksunkara | |
| [core] | |
| editor = nvim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| pager = delta | |
| [column] |
| source 'http://rubygems.org' | |
| gem 'rack' | |
| gem 'sinatra' | |
| gem 'dm-core' | |
| gem 'haml' | |
| gem 'dm-postgres-adapter' | |
| gem 'dm-migrations' | |
| gem 'pg' |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| #!/usr/bin/env bash | |
| uninstall() { | |
| list=`gem list --no-versions` | |
| for gem in $list; do | |
| gem uninstall $gem -aIx | |
| done | |
| gem list | |
| gem install bundler | |
| } |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: