Skip to content

A little script to bulk push Github Classroom repos back to origin in one go

License

Notifications You must be signed in to change notification settings

danielnemenyi/git-classroom-mass-fix-n-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Github Classroom Fix 'n Push

A little script to automatically push a directory full of Github Classroom feedback back to Github.

Specifically it goes into each repository, changes the remote URL to the original version instead of the token, adds and commits everything, pulls any changes and then pushes all changes back to github, and then moves onto the next repository.

It needs to be executed from the parent directory of all the assessments. ie, in the following directory setup, from project1:

assessments/
    project1/
        student1repo/
        student2repo/
        ...

You'll want to make sure git, awk and grep work from the commandline before running it (this will certainly be the case on Linux. Not sure if so on macOS). Try running git -v, awk -v, grep -v to test if they're present. Also, perhaps also make sure you're in bash not zsh. (just write bash in the terminal).

It's rough and dirty, contains no checking, use at own risk without warranty!

About

A little script to bulk push Github Classroom repos back to origin in one go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages