paint-brush
Dropbox as a GitHub Alternativeby@jamesfmackenzie
4,156 reads
4,156 reads

Dropbox as a GitHub Alternative

by James MackenzieMarch 28th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Want the benefits of private, <a href="https://en.wikipedia.org/wiki/Distributed_version_control" target="_blank">distributed version control</a> but don’t want to pay <a href="https://github.com/pricing" target="_blank">GitHub’s subscription fee</a>? Or simply don’t trust GitHub with checked in passwords, tokens and secrets?
featured image - Dropbox as a GitHub Alternative
James Mackenzie HackerNoon profile picture

Want the benefits of private, distributed version control but don’t want to pay GitHub’s subscription fee? Or simply don’t trust GitHub with checked in passwords, tokens and secrets?

You can fashion yourself a quick and dirty solution using Git and Dropbox.

What You need

Step 1. Clone an Empty Repository

  • Decide on a folder name for your new repo
  • Clone it via git clone dropbox://<reponame>
  • This will create a new, empty directory in your local with all the necessary .git gubbins

Step 2. Write Some Code!

  • Get busy, write some code! Save it to your new local repo.
  • Or if you’re feeling lazy, just copy-paste the code from somewhere else.

Step 3. Add, Commit and Push

  • Stage the source code via git add
  • Commit to your local repository via git commit
  • Push to the Remote via git push

Step 4. Share and Collaborate

  • Want to collaborate with someone? Just use Dropbox’s built in Share feature.
  • Anyone you add can clone, add, commit and push too. Easy as!

Originally published at jamesfmackenzie.com