GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tryfinally/course-git-util: Bash utility to fetch/pull/clone students git repository in a advanced C++ course.

BranchesTags
Open more actions menu

Latest commit

 

History

46 Commits
46 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
gitclass
gitclass
 
 

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

bashgituniversity-courseutility-scripts

Resources

Readme
GPL-3.0 license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.