Skip to content

Commit

Permalink
add git backup command
Browse files Browse the repository at this point in the history
  • Loading branch information
donno2048 committed Aug 21, 2023
1 parent fecdfdf commit 82f1d14
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.egg-info
build
backup
backup
dist
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Makes a backup of all your repositories and gists from GitHub

## Install

(On Linux you'll need to use `sudo`)

### From PyPI

`pip3 install gitback`
Expand All @@ -14,6 +16,8 @@ Makes a backup of all your repositories and gists from GitHub

## Usage

You can also use `git backup` instead of `gitback`.

```py
usage: gitback [-h] [-n] [-P] [-s] [-f] [-z] [-q] [-u] [-p] [-r | -g]

Expand Down
6 changes: 6 additions & 0 deletions git-backup
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/python3
from gitback import backup
from os import rmdir
if __name__ == '__main__':
try: backup()
except Exception: rmdir("backup")
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from setuptools import setup,find_packages
setup(
name='gitback',
version='1.1.2',
version='1.1.3',
description='Makes a backup of all your repositories and gists from GitHub',
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
url='https://github.com/donno2048/gitback',
packages=find_packages(),
scripts=['git-backup'],
license='MIT',
author='Elisha Hollander',
classifiers=['Programming Language :: Python :: 3'],
Expand Down

0 comments on commit 82f1d14

Please sign in to comment.