If you are looking for rls
to be a snapshot of the dev
branch at some arbitrary commit, you can use git reset
to move your branch pointer to the commit you are looking for. Make sure you have no unstaged changes when doing this.
git checkout rls
git reset --hard <SHA-1 of commit in dev>
Example:
If dev
looks like:
A - B - C - D
and you want rls
to look like:
A - B
you would do
git checkout rls
git reset --hard <sha-1 of B>
However, if you want to choose a more specific range of commits that you want to push to rls
, you'll want to use the git cherry-pick
command.
git checkout rls
git cherry-pick <non-inclusive-starting-SHA1>..<inclusive-ending-SHA1>