Say I have a repo on GitHub or Bitbucket and I do some work in the office but before leaving I want to save the current state without committing (because too messy for example). How would I go about saving the current state so I can complete the work on another machine?
You'd commit. If you want to share work, you need to commit your changes.
Just check out a temporary branch for your new commit. So long as you're the only person working on it, you're free to squash the branch into a single commit before you merge into your main branch later on.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With