Skip to content

Bash utility to fetch/pull/clone students git repository in a advanced C++ course.

License

Notifications You must be signed in to change notification settings

tryfinally/course-git-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 

Repository files navigation

Course git tool

Bash utility to fetch/pull/clone students git repository in a course. Used extensivly in my Advanced C++ Courses.

environment variables used

  • $COURSE_GIT_URL course git base URL
  • $COURSE_GIT_REPO name of repo

Sample commands

First time

mkdir cs101; cd cs101
./gitclass -r hw jane cindy tao karim
  • Create folder for course cs101
  • Clone repos for students: jane cindy tao karim.
  • Repo name is hw
  • full git URL is git@${COURSE_GIT_URL}:cs101.${STUDENT}/hw.git
  • for jane it will be something like `git@$gitlab.cslab:cs101.jane/hw.git

Alternatively, if we have no common prefix for user names:

COURSE_GIT_URL=`github.com`  ./gitclass -k "" -r hw jane joe
  • where -k "" is used to specify no class name prefix.

Pulling

Once we have cloned the repos, repeating the same command will do git pull.

./gitclass -r hw jane cindy tao karim

Advanced Options

See ./gitclass -h for more.

About

Bash utility to fetch/pull/clone students git repository in a advanced C++ course.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages