Skip to content

Backup the part of your git project that isn't stored elsewhere

Notifications You must be signed in to change notification settings

DouglasMeyer/git-backup

Repository files navigation

Git Backup/Restore

A tool to backup and restore your git projects and not duplicate what is stored remotely.

Installation

Usage

Backup

cd my_project
git backup

Restore

git restore my_project.tar

Options

Backup

--no-default         - Don't include default options.
--all                - Will turn on all options.

--config (default)   - Include config (./.git/) files in backup.
--no-config          - Don't include such files in backup.

--hooks (default)    - Include hooks (./.git/hooks) files in backup.
--no-hooks

--branches (default) - Include local branches (upto commits stored remotely).
--no-branches

--staches (default)  - Include stashed changes in backup.
--no-staches

--cached (default)   - Include cached changes in backup.
--no-cached

--changes (default)  - Include working directory changes in backup.
--no-changes

--untracked          - Include untracked files in backup.
--no-untracked (default)

--ignored            - Include ignored files in backup.
--no-ignored (default)

--work-tree <path>   - Set the path to the working tree. By default, the
                       current directory is used, or GIT_WORK_TREE if set."

Restore

backup_file - The tar file generated by git backup.

About

Backup the part of your git project that isn't stored elsewhere

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages