I apologize if this question is a duplicate but I am having trouble phrasing my question. I am a beginner and for the last months I have been working on a Java program. Sometimes I work on the go from my laptop and sometimes I work at home from my desktop. This means that if I am done writing some code in the desktop then I have to upload all the files to Google Drive and then download them again when I work on my laptop and vice versa. I am switching computers more often and it's becoming tedious to have to do this uploading and downloading to Google Drive all the time (open browser, delete old files from computer, download new files from Drive, move files from Download folder to the program folder).
Is there something more convenient? Something that I can run from the terminal that will immediately save my files to some server and then allow me to pull them from the server to any computer?