Skip to content

Instantly share code, notes, and snippets.

View makuchaku's full-sized avatar

makuchaku makuchaku

View GitHub Profile
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@makuchaku
makuchaku / bug_branch.sh
Created March 19, 2012 07:24
Git workflow in bash scripts
############ WORK IN PROCESS ############
# -- Copy (append) the following script to your ~/.bashrc file and restart console --
## Workflow ##
# Suppose the current deploy branch is deploy_x_y
# Suppose you have to start work on Bug #100
# Run "bbcreate 100" => a new branch 100_bug will be created out of deploy_x_y and will be checked out (ready to start work)
# You work and finish the changes in your 100_bug branch
# Run "bbpush" to add + commit + push your changes into 100_bug branch. Commit log will be "Fixes for #100"
# You can do bbpush multiple times you like
@makuchaku
makuchaku / gist:1619192
Created January 16, 2012 05:19
Bash script for a pretty looking command prompt with GIT support
############### GIT ################
function parse_git_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "("${ref#refs/heads/}")"
}
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
@pulkitsinghal
pulkitsinghal / gist:1481376
Created December 15, 2011 14:56
Move Git repository from Unfuddle to BitBucket
mkdir temp
cd temp
git clone [email protected]:yourDomain/yourRepoName.git
cd yourRepoName/
git remote rm origin
git remote add origin https://[email protected]/yourUsername/yourNewRepoName.git
git remote show origin
git push origin master
cd ../..
rm -rf temp