Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added how to create a branch from changes you've already made.

...

No Format
git commit -m "RR-123 I changed function val_banana to add a check for apples"

Moving Comitted (but not Pushed) Changes to another branch

This is useful when you try to Push stages to Master and it gets rejected with a message that you need to do this via a pull request.

Run:

  • git fetch origin
  • git rebase origin/master
  • git reset --hard origin/master (Check before doing this that git status is clear)

See https://stackoverflow.com/questions/5066041/moving-committed-but-not-pushed-changes-to-a-new-branch-after-pull