CS371p: Object-Oriented Programming

  • Fall 2024: 50595 (57), 50600 (55)
  • 26 Aug - 9 Dec 2024
  • MEZ B0.306: MWF 10 am & 11 am


Configuring git


  • % git config --global user.name "John Galt"
  • % git config --global user.email jgalt@atlas.com
  • % git config --global push.default simple
  • % git config --global color.ui true

If you're using macOS or Linux:

  • % git config --global core.autocrlf input

If you're using Windows:

  • % git config --global core.autocrlf true

Cloning the class repo from GitLab


  • % git clone https://gitlab.com/gpdowning/cs371p.git

Syncing with a repo


  • % cd my-repo
  • % git pull

Checking the status of a repo


  • % cd my-repo
  • % git status

Creating a repo and connecting it to GitLab


  • % touch README
  • % git init
  • % git remote add origin git@gitlab.com:jgalt/my-repo.git
  • % git add README
  • % git commit -m 'first commit'
  • % git push -u origin master

Adding to a Repo


  • % cd my-repo
  • % git add Foo.py
  • % git add Bar.py
  • % git commit -m "another commit"
  • % git push


Copyright © Glenn P. Downing, 1995-2024
Updated 18 Nov 2024