Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.
/ greasygit Public archive

(Unmaintained) Export/Convert a user script hosted on GreasyFork as a new git project with commit history kept intact

License

Notifications You must be signed in to change notification settings

Gowee/greasygit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NO LONGER MAINTAINED

You are welcomed to start a new project by forking.

Tips: The current implementation depends on RegExp to parse HTML which breaks often when greasygit updates their website, even slightly in styles. It would be better to switch to a HTML/XML(e.g. lxml) parser, while introducing a external dep troubles distribution of thescript.

greasygit

greasygit helps migrate a script published on Greasy Fork to Git with history (commits) kept intact.

Run

python -V # Python version >= 3.6 should work well.
cd workspace # or other direcotry. greasygit will create a project directory there automatically.

curl -LO https://raw.githubusercontent.com/Gowee/greasygit/master/greasygit.py
chmod +x greasygit.py
./greasygit.py # Following the prompts to proceeed.

cd <REPO> && git log # Check the resulted commits.

git remote add <REMOTE> ... # Add a remote.
git push -u <REMOTE> <BRANCH>... # Push!

Demo

Terminal recording: https://asciinema.org/a/LQ72CJwCNyJ9k5XglOJhOdDjV

About

(Unmaintained) Export/Convert a user script hosted on GreasyFork as a new git project with commit history kept intact

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages