Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Also when pushing to create remote branch, the HEAD in the command above you can just be replaced with a hash, if you don't feel like checking out the branch
Same works with merging, if you don't want to merge whole branch, but only up to a certain point, you can use hash id instead of whole branch path
Rebases also work against remote branches in the ways you would expect

Git procedure to rebase and update a remote branch

Code Block
git clone ssh://ashehata@review.hpdd.intel.com:29418/fs/lustre-release
git checkout multi-rail
git fetch origin master
git merge origin/master
git push origin multi-rail

# to grab only a few patches
git checkout multi-rail
git checkout <SHA>
git push origin HEAD:multi-rail