Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robandpdx/gh-lfser
A GitHub CLI extension that will migrate a repo to LFS
https://github.com/robandpdx/gh-lfser
cli gh-extension lfs
Last synced: about 1 month ago
JSON representation
A GitHub CLI extension that will migrate a repo to LFS
- Host: GitHub
- URL: https://github.com/robandpdx/gh-lfser
- Owner: robandpdx
- License: mit
- Created: 2022-09-22T17:47:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-23T16:59:30.000Z (over 2 years ago)
- Last Synced: 2024-11-13T11:40:43.495Z (3 months ago)
- Topics: cli, gh-extension, lfs
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# gh-lfser
This [GitHub CLI](https://cli.github.com/) extension will migrate a repo to LFS. WARNING: This is destructive!! I recommend you test this operation on a fork first! The repo pull requests will be outdated after this operation because the commit shas will change as a result of the history being rewritten.
This will:
1. Clone the repo
1. Migrate files with the provided extension to LFS
1. Commit lfs-mapping.csv file on default branch showing old sha to new sha mapping
1. Force push all repo branches back to the origin
1. Forge push all tags## Permissions
You need write access to the repo. The repo needs to allow force pushes to all branches. It's probably best to disable any branch protection rules that may be in place before running this.## Install
`gh extension install robandpdx/gh-lfser`## Upgrade
`gh extension upgrade robandpdx/gh-lfser`## Usage
`gh lfser --extensions --repo `
`gh lfser --help`## Example
`gh lfser --extensions "*.dmg,*.png,*.jpg" --repo robandpdx/el-repo-mas-grande`