Exactly. And if you you’re worried about dirtying your commit history with an unfinished commit, just rebase it out later.
Comment on Google Launches Project IDX, A web-based IDE
realharo@lemm.ee 1 year ago
I do think it solves an interesting problem where you’re working on your desktop and decide to move to your laptop and continue working on the same codebase, but don’t want to commit early so you can pull down the changes to your laptop.
You can just push the changes to a different branch and then merge it to your normal feature branch later. Takes like 5 seconds.
sirdorius@programming.dev 1 year ago
Spectacle8011@lemmy.comfysnug.space 1 year ago
Huh, fair enough. I guess I’m still not using git to its full potential. What I do now is SSH into my desktop from my laptop and work on it there. It’s easy because I use Neovim.
MooseBoys@lemmy.world 1 year ago
Or just use vscode remoting.
knoland@kbin.social 1 year ago
Someone needs to tell this man about rebasing.
Spectacle8011@lemmy.comfysnug.space 1 year ago
I rebase! I just don’t want to push to the main repo, pull it down, rebase and force push to it. Pushing to a disposable branch is an obvious solution I didn’t see, haha. I tend to not use branching a lot in my projects…
…I guess I could actually set up my desktop as a remote too, huh.
MantisWaffle@lemmy.world 1 year ago
If only there was some syncing thing that would let you move arbitrary files between devices.
github.com/syncthing
Spectacle8011@lemmy.comfysnug.space 1 year ago
Thanks for the suggestion! If you can believe it, I already have Syncthing installed but haven’t used it in ages. I didn’t even think of using this for keeping git repositories in sync! I did find these forum posts that seem to recommend against using Syncthing for git repositories, though they’re 6-7 years old:
Well, conflicting reports really, but it’s enough to make me wary. Interestingly, someone recommends the branch solution as an alternative:
Seemed to be working out well for the OP, though.