git remote add local_remote_name https://github.com/user/repo.git
git remote -v
Refresh data:
git fetch base_remote_name
To show common base:
git merge-base my_branch base_branch
to "rebase" for only squash/reorder purpose:
git rebase -i ${HASH}
Note: you could use reword
to rename commit messages only
git rebase base_remote_name/base_branch_name
git checkout mybranch
git rebase theirsbranch
... foo/bar.java conflict. We want the version that was at the head of branch1
... which was popped off and applied after branch2's commit(s).
git checkout --theirs foo/bar.java
git add foo/bar.java
git rebase --continue
git status
Also look @ https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request for simple process description.