Search code examples
version-controlsharing

Share project's code between PC and Notebook


Sometimes I want to be able to work with my php code both from my PC and notebook. I know, that I can use git, but I don't want to make dirty commits just to transfer code from PC to notebook and back. So, may be you have experience with it, what tools I can use to share my project between PC and notebook, may be I should use dropbox or something similar?


Solution

  • I still recommend to use git (or some other SCM of your choice).

    You can deal with dirty commits like this

    • Create a feature branch for those commit
    • When you produced a reasonable state, then
      • Merge feature branch to your main branch or
      • Squash all dirty commits to the one clean commit and merge(or rebase) it with your main branch