Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Save current progress without commit

Tags:

git

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?

like image 919
mshohayeb Avatar asked Nov 07 '25 11:11

mshohayeb


1 Answers

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.

like image 164
meagar Avatar answered Nov 10 '25 08:11

meagar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!