-
Notifications
You must be signed in to change notification settings - Fork 18
Backup Code into the Cloud
The most important goal of GitBox is to allow the creation, constant maintenance and all time availability of backups, without the need of any paid third party hosting services or personally maintained servers.
This tutorial assumes that we either have a yet unversioned project that we would like to add versioning to and backup in the cloud, or we would like to start a brand new project tracked by GitBox. In either case, let’s call the project myapp.
The first thing to do is to create a new empty git repository inside GitBox and initialize it. This will place a readme file into the new repo to make git happy (it doesn’t like empty repos). $ gitbox create myapp Creating empty repository... Initializing new repository... Repository successfully created.
Find a suitable working folder for the project and change to that specific directory. Here, clone the newly created repository. This will result in a subfolder being created with the name of the cloned repo (so in case you would like to clone to /work/uni/myapp, then issue the clone in /work/uni). $ gitbox clone myapp Cloning repository... Repository successfully cloned.
From this point onward it’s a simple git workflow to back up things into the cloud: $ echo “Some change” > somefile.txt $ git add somefile.txt $ git commit –m “Created some file” $ git push
Whenever you issue a git-push, your committed changes will be pushed into GitBox, and subsequently synchronized and backed up in the cloud. Be sure to wait until the Dropbox synchronization finishes before turning off the computer in order to have everything fully backed up.