#sync project between two pc’s
20 messages · Page 1 of 1 (latest)
You could install Dropbox and create your project inside the Dropbox folder so every change is insta-synced
Do however consider that this is no replacement for actual version control
and what is version control?
Git, for example, anything that lets you track and, more important, revert individual changes between versions of your project.
that seems pretty nice! do you know how to do this?
https://rogerdudler.github.io/git-guide/
Read this to get the basics of git
https://docs.github.com/en/get-started/quickstart/hello-world
Then this to get the basics of github.
Then there's just a matter of creating a new repository in github and a local repository in your project folder, and doing git push every time you've made a significant change. Then, when you change computers, before you start working, you do git pull to update your local folder with the latest changes you pushed
2 things
me too stupid to understand this. is there an easier way or better just a tutorial for syncing two folders between pc's?
doesn't godot have build in version control? just googled it a bit.
- Yes, Dropbox.
- Yes, you can use the official git plugin and simplify the process a bit (you will press buttons instead of writting commands), although I had problems getting it to work last time I tried
K Il figure out Dropbox then, sounds easier. Thx for the help. I might ask some more questions
imma use onderive bc i already have that properly working between two machines so thanks for the help!
I would recommend learning to use git early instead of taking shortcuts with Dropbox as it's a much more powerful tool than just syncing between devices. There are plenty of tutorials online and the gist of it is:
- code is stored on your PC and "pushed" or "pulled" from GitHub/gitlab/bitbucket
- code changes are denoted by "commits", which are like checkpoints/save points
- "branches" let you temporarily try working on new features before "merging" the branch back into your main one
To sync between machines all you need to do is "git push" to upload to your current branch and "git pull" to download the latest changes. If you make frequent commits, you can go back in time to a point where your code works or even compare your current code with the past without deleting anything. Basically a super undo
Not gonna lie though, it'll be a struggle at first. It's definitely worth it in the long run and you'll thank yourself for starting early
the thing is il probably use this like once every month or so soi dont want to go trough all of this for just something small as this
If you plan on making a career out of programming, you'll probably need it for the rest of your time coding
Git knowledge is indeed pretty fundamental in any coding related matter, if you ever have a coding job, or even if it's just your hobby but you team up with someone else for a jam or whatever, they will expect you to know how Git works, so learning it is very well expended time.
I know but for the time being I don’t really care. Il do it later. (Proceeds to do it never)
If you're in same home network you can access the folder remotely from the other PCs godot.
If not you can copy the project folder on a flash drive
A flash drive is actually not a bad idea! Why didn’t I think of that
The earlier you have it set up, the more revisions you have. It's actually pretty easy to use basic git commands. Git also has branches, which let you work on features without affecting your main code, and tags, which let you mark things such as releases.