Skip to content

Instantly share code, notes, and snippets.

View lnielsen's full-sized avatar

Lars Holm Nielsen lnielsen

View GitHub Profile
# $ git clone inveniosoftware/automation_tools
# $ cd automation_tools
# $ ipython
from automation_tools.repositories import GithubUtils
GITHUB_INVENIOSOFTWARE_URL = "https://github.com/inveniosoftware/"
GA_INVENIOSOFTWARE_BADGE_URL = GITHUB_INVENIOSOFTWARE_URL + "{}/workflows/CI/badge.svg"
inveniosoftware_repos = GithubUtils.list_organization_repositories('inveniosoftware')
git clone https://github.com/inveniosoftware/invenio-$PACKAGE
cd invenio-$PACKAGE/
git remote add invenio https://github.com/inveniosoftware/invenio
git fetch invenio
git checkout -b master invenio/master
git log --follow invenio/modules/$PACKAGE/models.py
git log --stat --follow invenio/modules/$PACKAGE/models.py
git checkout -b rename fe01274ee7afa8025ae5bfea88eb231dd299637a
git checkout -b pre-rename rename~
git filter-branch -f --subdirectory-filter modules/$LEGACY/