git stash // to save all existing changes in local branchgit checkout master // Switch to master branch from branch-1git pull // take changes from the mastergit checkout branch-1 // switchback to your own branchgit rebase master // merge all the changes and move you git head forwardgit stash apply // reapply all you saved changes