#sync project between two pc’s

20 messages · Page 1 of 1 (latest)

south sail
#

I have two pc’s were u might work on the same projects on. Is threre any way to sync a project with GitHub, Google drive or any other service so I don’t have to always upload the files?

solid garden
#

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

south sail
#

and what is version control?

solid garden
#

Git, for example, anything that lets you track and, more important, revert individual changes between versions of your project.

south sail
#

that seems pretty nice! do you know how to do this?

solid garden
#

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

south sail
#

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.

solid garden
south sail
#

K Il figure out Dropbox then, sounds easier. Thx for the help. I might ask some more questions

south sail
#

imma use onderive bc i already have that properly working between two machines so thanks for the help!

night falcon
#

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

south sail
#

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

night falcon
#

If you plan on making a career out of programming, you'll probably need it for the rest of your time coding

solid garden
#

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.

south sail
#

I know but for the time being I don’t really care. Il do it later. (Proceeds to do it never)

sly shoal
#

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

south sail
idle trail