git Switch to branch X git checkout x get new remote branch git checkout -b test origin/test -- ignore file mode. ugh! git config core.filemode false -- stash push all git stash push -u -m 'message here'