Skip to content

add script to checkout all available branches #120

@bastelfreak

Description

@bastelfreak

to make development easier we should add a script that is able to check for all remote branches and make a checkout for them in seperate subdirectories. This allows us to test several things in parallel. What needs to be done:
git rev-parse &>/dev/null to check if we are in a git repo
git remote to check if a remote is configured
git fetch -q -p --all 2>&1 to fetch all branches from remote + delete old local ones
git gc --auto for garbadge collection
now we need to iterate add git branch and check them all out in subrepos


In the future we can also add another script to autogenerate PXE entries for each branch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions