News for hackers. Stuff that matters.
Re:Understanding Git for real by exploring the .git directory by grayclhn on Sunday February 21, 2016 @12:04PM (#11145270)
Try

    git checkout -b wip-syncing
    git commit -m "wip means work in progress"
    git push <whatevs> wip-syncing
on your laptop, then

    git fetch --all
    git checkout <whatevs>/wip-syncing -- .
    git push <whatevs> :wip-syncing
on the desktop. of course, this "rewrites history", but only in a very localized way.

In general, you're going to be fighting against git if you take an absolutist stance against rewriting history. Which is fine! But a little bit of controlled rewriting can open up a lot of options.

Edit: and I'm typing this from memory on my phone so please don't copy and paste the commands without verifying that they work correctly first!

Re:Understanding Git for real by exploring the .git directory by n0us on Sunday February 21, 2016 @03:06PM (#11146205)
not a bad idea to keep a separate branch for doing that. I might try that out.