cd ~/project ## Go to my projects directory
git clone branch-a branch-b ## Create a new branch-bcd branch-b
... work work work ...
git commit -a -m "Made some changes on branch-b"
git pull origin ## Fetch and merge the changes from branch-a
git push origin ## Push my changes back to branch-a
# on master branchgitcheckout master# Create a branch for feature 1gitcheckout -b feature_1# work on feature 1
# Start a new feature branchgitcheckout mastergitcheckout -b feature_2# work on feature 2
# feature 2 finished and committed, time to merge gitcheckout mastergitmerge feature_2
# update feature_1 branchgitcheckout feature_1gitmerge master