Skip to content

kiprasmel/git-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-backup

In case of fire, use git-backup 🔥

git-backup is literally like git stash, but it makes stashes available on the remote for later use!

Installing

yay -S git-backup-git
  • From source:
git clone https://github.com/sarpik/git-backup.git
# or:  git clone [email protected]:sarpik/git-backup.git

cd git-backup

make install

Usage

cd some-git-repo/
git-backup

and later, if you want to apply the backup:

cd some-git-repo/
git stash apply <branch-name>

For ease of use, you could create a git alias for git-backup:

git config --global alias.backup "!git-backup"
git config --global alias.bp     "!git-backup" # extra quick backups 💦💦

and then use it by just running git backup.

Manual

See git-backup(1) (man git-backup or git-backup -m).

License

GPL-2.0 - same as git