bsnsk / git-dropbox

A bash script to backup/update your repositories in your Dropbox folder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-dropbox

A bash script to backup your git repositories in your Dropbox folder.

Not necessary to have your Dropbox folder at ~/Dropbox/; the folder can be detected as ${DropboxPath}.

Install

This will install git-dropbox into your directory /usr/local/bin/.

./install.sh 

Make sure you have git installed.

Usage

Run git-dropbox to get the help information.

$ git-dropbox
Dropbox directory found: ${DropboxPath}/

Below is git-dropbox Help Information.

FORMAT:
	$ git-dropbox [INSTRUCTION]

INSTRUCTION:
	create [NAME]
		-- Create a corresponding repo in ${DropboxPath}/git/ directory, 
           NAME is optional
	push 
		-- Push to your dropbox repo (current branch)
	pull 
		-- Pull from your dropbox repo (current branch)
	list 
		-- List your repositories in ${DropboxPath}/git/

About

A bash script to backup/update your repositories in your Dropbox folder

License:MIT License


Languages

Language:Shell 100.0%