https://github.com/semitable/g2b
Git to Dropbox, a project that saves a git directory on dropbox while checking for any conflicts
https://github.com/semitable/g2b
Last synced: 9 months ago
JSON representation
Git to Dropbox, a project that saves a git directory on dropbox while checking for any conflicts
- Host: GitHub
- URL: https://github.com/semitable/g2b
- Owner: semitable
- License: gpl-2.0
- Created: 2015-06-04T11:50:32.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-07-11T01:46:45.000Z (almost 9 years ago)
- Last Synced: 2023-08-06T06:04:50.860Z (almost 3 years ago)
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# g2b: Git to Dropbox
## As a project for "Principles of Distributed Software Systems", Software 414
A module for creating, accessing and maintaining GIT repositories in dropbox!
G2B implements the following functions:
```
put: Create a 'server' repository inside dropbox.
clone: Clone a repository found in dropbox. The repository should have been created by G2B previously
push: Push changes from your local repository to the dropbox hosted repository
pull: Retrieve changes submitted to dropbox repository
```
Instructions:
First of all you should make G2B a globally callable application. In Linux run:
```
sudo ln -s /path/to/g2b.py /usr/local/bin/g2b
```
The navigate to a repository you want to upload to dropbox and run
```
g2b --put
```
If this is your first operation in the spesific folder you will be promted to run
```
g2b --configure
```
first
You will then be able to run push and pull operations!
Do not forget to add g2b.config to .gitignore!
If two users push simultaniously (in a normal dropbox environment this would result in a corrupt repository) G2B will resolve the issue and the second user will be asked to merge the changes (if it can't be done automatically) before pushing again!