Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Desktop & laptop workflow anyone?

Discussion in 'Editor & General Support' started by jtsmith1287, Nov 23, 2015.

  1. jtsmith1287

    jtsmith1287

    Joined:
    Aug 3, 2014
    Posts:
    787
    Sometimes you want to keep working but you just don't want to sit at your desk anymore. I work at a desk at work, and then come home and sit at my desk to continue working on my game.

    Does anyone have a good workflow for using a laptop that doesn't involve committing changes to push to the other device? I used to push commits on a random branch and say things like, "Switching to laptop" but then realized that those commit messages are included when merging back to master. Blegh.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,797
    Are you using git? You can commit and push, then fetch and reset your branch fairly trivially.

    It's a lot more intrusive with Mercurial, and not recommended, but git is absolutely made for this workflow.

    Otherwise, why do you care about extra commits? I do it all the time and just mark them as <WIP> so I know they aren't necessarily "complete" in and of themselves.
     
  3. jtsmith1287

    jtsmith1287

    Joined:
    Aug 3, 2014
    Posts:
    787
    It clutters up the logs and I don't like that. It's not multi-developer friendly.

    You basically recommended the exact workflow I specified I'm trying to avoid.
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,797
    ... do you even git?!

    If you reset your branch and continue working on the new machine, you can just delink the old dead end and forget about it. It precisely does NOT clutter the log, and it is very multi-developer friendly.

    Seriously, git is used to develop the Linux kernel. Last I checked there is more than one person working on that project, and they are distributed around the globe pretty widely.
     
  5. Kamilche_

    Kamilche_

    Joined:
    Jan 11, 2015
    Posts:
    75
    Yeah, I use and abuse git all the time that way. I would rather take the time to fix a git problem, than copy a folder over manually, any day of the year.
     
  6. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,797
    I cannot work anymore without source control. Even if I am making a simple script to do a one-time job, I still fire up a git repo in the work directory and commit early and often. It allows me to confidently try out anything that springs to mind. It is what git is MADE for.

    Working without source control is like playing a console game without a save cartridge. Savage!
     
  7. Kamilche_

    Kamilche_

    Joined:
    Jan 11, 2015
    Posts:
    75
    Plus, how many times has the project gotten corrupted somehow using Unity? For source control users, it turns a potential catastrophe into a simple inconvenience.