{"id":16373354,"url":"https://github.com/antham/git-backup","last_synced_at":"2025-06-25T07:37:43.143Z","repository":{"id":56372136,"uuid":"218141505","full_name":"antham/git-backup","owner":"antham","description":"Backup files on Emacs through git","archived":false,"fork":false,"pushed_at":"2020-11-11T17:26:53.000Z","size":79,"stargazers_count":9,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-01T14:49:04.586Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-28T20:42:29.000Z","updated_at":"2024-05-13T22:16:45.000Z","dependencies_parsed_at":"2022-08-15T17:31:10.188Z","dependency_job_id":null,"html_url":"https://github.com/antham/git-backup","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/antham/git-backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antham%2Fgit-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antham%2Fgit-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antham%2Fgit-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antham%2Fgit-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antham","download_url":"https://codeload.github.com/antham/git-backup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antham%2Fgit-backup/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261828249,"owners_count":23215911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T03:14:06.104Z","updated_at":"2025-06-25T07:37:43.125Z","avatar_url":"https://github.com/antham.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git-backup [![CircleCI](https://circleci.com/gh/antham/git-backup.svg?style=svg)](https://circleci.com/gh/antham/git-backup) [![GitHub tag](https://img.shields.io/github/tag/antham/git-backup.svg)]() [![MELPA](http://melpa.org/packages/git-backup-badge.svg)](http://melpa.org/#/git-backup) [![MELPA Stable](https://stable.melpa.org/packages/git-backup-badge.svg)](https://stable.melpa.org/#/git-backup)\n\nThis library provides several helpers to implement a backup system on top of git.\n\n## Dependencies\n\n- git (\u003e= 1.5) (binary)\n- s (emacs library)\n\n## Public functions documentation\n\nSee the `git-backup.el` internal documentation to get more details.\n\n### git-backup-version-file\n\nRecords a file version in backup folder.\n\n### git-backup-list-file-change-time\n\nReturns an assoc list for a given file with the commit id as key and a string rendered using `git log pretty=format:\u003cformat-string\u003e` with `format-string` a format string supported by `git log`.\n\n### git-backup-remove-file-backups\n\nRemoves a file from the backup storage.\n\n### git-backup-open-in-new-buffer\n\nOpens a backup in a new buffer using a commit id given by `git-backup-list-file-change-time` and a filename.\n\n### git-backup-replace-current-buffer\n\nReplaces the current buffer with the content of the buffer found using a commit id given by `git-backup-list-file-change-time` and a filename.\n\n### git-backup-create-ediff\n\nOpens a backup with ediff using a commit id given by `git-backup-list-file-change-time` and a filename.\n\n### git-backup-clean-repository\n\nRuns manually `git gc` to reduce the size of the storage.\n\n## Tests\n\nFirst you need to install cask :\n\n```bash\ncurl -fsSkL https://raw.github.com/cask/cask/master/go | python\n```\n\nAdd cask to your path :\n\n```bash\nexport PATH=$PATH:/home/YOUR_USERNAME/.cask/bin\n```\n\nDownload dependencies using cask :\n\n```bash\nmake downloads\n```\n\nRun tests :\n\n```\nmake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantham%2Fgit-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantham%2Fgit-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantham%2Fgit-backup/lists"}