create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
############ 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 |
############### 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\]" |
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 |