Let's Git it!

Section covering version control systems, github and basic git commands

Objective:

  1. Learn about the Git versioning control system

  2. Practice git commands

Slides

Intro to Git

Quiz

Challenge

Follow this walkthrough to learn how to:

Useful Git Commands

add changes

commit changes

push to remote

git add <filename>

or

git commit -m "example message"

git push origin master

git add .

(to add all changes)

Use the following command so that whenever you push, you can store your credentials and don't have to type them every single time you push.

store git credentials

git config credential.helper store

Alternatively you can use the following set of commands :

git config --global user.name "your username"

git config --global user.password "your password"

git config --global user.email "your email(used for github)"

Last updated