Saving Git Temporarily Changes

I'm git-stash , what do I want to explore? Let's say I'm working on my project on my laptop, but I need to transfer what I have done so far on my desktop. Both computers synchronize with a centralized GIT repo. I do not want to commit my changes yet, I want to find where I left off on another PC.

+3
source share
2 answers

git-stash only saves local changes. You cannot send this change to another afaik machine.

You want to create a new branch, make the necessary changes, direct it to the remote one and pull this branch on the machine where you need it.

+9
source

The git stash command is designed to temporarily save changes locally (and return to a previous state). This is not what you want.

If you have direct access from one computer to another, you can create another remote that points to another computer. Then click on the changes on this computer without using the central repository.

0
source

Source: https://habr.com/ru/post/951092/


All Articles