| Electronics > Projects, Designs, and Technical Stuff |
| Keeping track of source code |
| << < (3/6) > >> |
| jc101:
I've gone a bit hybrid, by using git with Dropbox. I have a git folder at the root of my dropbox, which is on all machines I use. For new projects I then create an empty repository in that folder from one of the machines... --- Code: ---git init --bare project-name.git --- End code --- ...then just push/pull etc. to the local dropbox files with dropbox keeping the folders in sync. This is fine for me, as it's only me doing the development but using Macs and PCs interchangeably not necessarily with internet access if out and about. |
| emece67:
. |
| taydin:
I would not recommend shoving everything into a single repo. You would want to tag some revisions of individual projects. if everything is in one monster repo, then all projects will receive all tags. Also, getting the log of the repo will give you the entire log. You would have to narrow down the log to that specific project. The natural way is to use one repo for each project. But if you have projects that are dependent on each other, or have common components, those can be put into the same repo so that when you tag revisions, those revision will be consistent with each other. |
| ajb:
github for me, one project per repo. I also use submodules a fair bit, which makes it fairly easy to control and reuse library code, and easily bounce updates to it between projects. --- Quote from: jc101 on January 26, 2019, 04:12:19 pm ---I've gone a bit hybrid, by using git with Dropbox. I have a git folder at the root of my dropbox, which is on all machines I use. For new projects I then create an empty repository in that folder from one of the machines... --- End quote --- IME, git and dropbox/network drives don't get along very well, at least on Windows. For a while I had my working directory in Dropbox so that I could seamlessly move between desktop and laptop as needed, but at various points git would have some sort of issue with the file synchronization and I'd have to delete and restore files to get it working again. In the end I set up a separate working directory and just try to make sure I commit and push regularly--which is a good discipline to develop anyway. |
| james_s:
I've used a free program called Allway Sync to keep my project folder up to date between my desktop and laptop. I haven't tried adding more computers to the mix. |
| Navigation |
| Message Index |
| Next page |
| Previous page |