Saving Git changes temporarily

前端 未结 2 955
Happy的楠姐
Happy的楠姐 2021-01-20 15:13

Is git-stash what I want to explore? Say I work on my project on my laptop but I need to transfer what I\'ve done so far onto my desktop. Both PCs are sync to a

2条回答
  •  萌比男神i
    2021-01-20 15:50

    git-stash only saves the changes locally. You can not send that change on a different machine afaik.

    What you want is to create a new branch, make the required changes, push it to remote, and pull that branch on the machine where you need it.

提交回复
热议问题