mirror of
https://github.com/danog/git-reset-repo.git
synced 2024-11-30 04:19:22 +01:00
17 lines
572 B
Markdown
17 lines
572 B
Markdown
# git-reset-repo
|
|
|
|
Licensed under GPLv3. Copright 2016 Daniil Gentili.
|
|
|
|
Bash script that resets all commits of a git repo. Useful to reduce a repository's size.
|
|
|
|
|
|
Installation:
|
|
Run the following command as root:
|
|
```
|
|
wget -O /usr/bin/git-reset-repo https://raw.githubusercontent.com/danog/git-reset-repo/master/git-reset-repo || curl -o /usr/bin/git-reset-repo https://raw.githubusercontent.com/danog/git-reset-repo/master/git-reset-repo && chmod +x /usr/bin/git-reset-repo
|
|
```
|
|
|
|
Then simply run ```git reset-repo``` in your git repository and follow instructions.
|
|
|
|
|