I have wireguard setup between my machines, when I want to make my laptop changes available on my desktop at home:

git push desktop HEAD:laptop

When doing early dev with lots of nonsensical changes, i just amend into a WIP commit:

$ git add -u

$ git commit —amend

$ git push desktop HEAD:wip-laptop

Reply to this note

Please Login to reply.

Discussion

Yeah I need to go deeper with git. My usage is very basic. I never revise anything.

`git rebase -i` is your friend. Check it out! (No pun intended.)

Also, if you push a generic WIP commit, like Will suggested, you can just `git reset` to the commit before that on your other machine and proceed to commit different pieces of it after.

Bonus tip: you can `git push -f` to a remote as much as you want, but just don't do it on branches of e.g. a pull request that others may have checked out already. And you can't really lose anything, if it was on your machine before, `git reflog` is your friend for that case.