26

I'm a hobbyist and butcherer of python code. Quite often i'm jumping between multiple laptops / desktops playing around with different projects. Just wondering what the best workflow is or suggestions people have around syncing projects so I can edit and work on projects regardless of the computer. Is this something that people generally manage through github?? Thanks in advance for the thoughts!

you are viewing a single comment's thread
view the rest of the comments
[-] rompe@feddit.org 1 points 9 hours ago

One more thing regarding Git:

You'll likely want to keep your main branch functional at all times, so you would normally wait with your commit and push until a feature is ready. This wouldn't mix well with switching machines at random times.

That's where branches come in handy: create a feature branch, commit and push as often as you want. If the feature doesn't happen to work out, just delete the branch. When the feature is ready, merge the branch into the main branch. There even is an option to squash commits into a single one when merging, so you don't have to keep the whole commit history you created in the feature branch.

this post was submitted on 05 Feb 2026
26 points (100.0% liked)

Python

7737 readers
11 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS