26
synchronizing code between multiple work spaces
(aussie.zone)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
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.