Skip to content
Anish Athalye edited this page May 14, 2019 · 4 revisions

Beginner's guide

Requirements

  • Install Python
    • On macOS, you can install Python with Homebrew by running the following:
      • /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
      • brew install python
  • Install git-remote-dropbox
    • pip install git-remote-dropbox
  • Save your git-remote-dropbox token in the correct location

Notes

For the sake of simplicity, in this example walkthrough, it is supposed that the repository data will be stored in a folder named git-private. It can help reduce clutter to keep all repositories in the same directory.

Creating a repository

Choose where you want the repo you will work on to be:

cd ~/path/to/folder

Create the folder you want to be a repo and enter the directory:

mkdir repo_name
cd repo_name

Initialize the repository:

git init

Then create a README.md to facilitate creating an initial commit: This will give you something to add to your first commit (you can't commit nothing).

touch README.md

Then, create the first commit:

git add -A
git commit -m "Initial commit"
git remote add origin "dropbox:///git-private/repo_name"

And then push:

git push -u origin master
Clone this wiki locally