Mysore University School of Engineering logo University of Mysore crest
Mysore University School of EngineeringDept. of AI & ML · BAIL308C Project Management with Git
Class 1 · Saturday, 14 November

Your first steps on GitHub.

An account, a repository, a README, and how to delete and hide things safely.
Abhishek Rai  ·  Session 1, part 1
github.com/you
my-first-repo
PublicREADME.md
Settings · Danger Zone
Change visibility
Delete this repository
Today

Five things, all in the browser.

Create a GitHub account
Create your first repository
Write a README.md in Markdown
Delete a file, and a whole repository
Switch a repository from public to private
No laptop needed today
Everything happens on github.com.
Installing Git on your own laptop comes next class.
Why this course
9 in 10
developers use Git.
Stack Overflow Developer Survey, 2022. GitHub is where most of that work is shared.
Your GitHub profile becomes your portfolio.
Recruiters and teammates look at it. What you build in this course can live there.
Two different things

Git is the engine. GitHub is the garage.

Git
Software on your laptop that records every change. Works offline. Next class.
GitHub
A website that stores your projects online, so you can back them up and share them. Today.
Step 1

Create your GitHub account.

1
Go to github.com, click Sign up
2
Enter your email and a strong password
Use an email you will still have after college.
3
Choose a username
It becomes github.com/username. Choose it carefully.
4
Verify with the code sent to your email
5
The Free plan is all you need
Username: good vs bad
Goodabhishek-rai
Goodpriya-codes
BadxXdarklord99Xx
Recruiters will see this name for years.
The key word

A repository is a project folder with a memory.

It holds your files, plus the full history of every change: who changed what, and when.
People shorten it to repo. One project, one repo.
Step 2 · press next for each field

Create a new repository.

github.com/new
Repository name
my-first-repo
Description (optional)
Practice repo for BAIL308C
Visibility
PublicPrivate
Add a README file
Create repository
1
Name it
Short, lowercase, hyphens: my-first-repo
2
Describe it
One line: what is this project?
3
Public or private
You can change this later.
4
Add a README
Gives the repo a front page.
5
Create repository
Done. It lives at github.com/you/my-first-repo
Who can see it?

Public or private.

Public
Anyone on the internet can see it. Only you, and people you add, can change it. Good for portfolio work.
Private
Only you, and people you invite, can see it. Good for unfinished work or anything personal.
Never put passwords or API keys in any repo, public or private.
Your repo's front page

Type Markdown. See it formatted.

README.md (what you type)
# My First Repo

Practice repo for **BAIL308C**.

- Learn Git
- Learn GitHub

Run `git init` to start.
[My profile](https://github.com)

My First Repo

Practice repo for BAIL308C.

  • Learn Git
  • Learn GitHub

Run git init to start.
My profile

.md = Markdown
Cheat sheet

Six Markdown symbols.

You typeYou get
# TitleA big heading (## for smaller)
**bold**bold text
*italic*italic text
- itemA bullet list
[text](https://link)A clickable link
`code`code in a box
Edit on the website

Pencil, edit, Commit changes.

1
Open README.md, click the pencil icon
2
Edit, then check the Preview tab
3
Click Commit changes
Type a short message saying what you changed.
Remember this word
commit
A saved version with a message. GitHub runs Git for you when you press that button. Next class, you run Git yourself.
Removing data

Delete one file.

1
Click the file to open it
2
Open the ⋯ menu at the top right of the file
3
Choose Delete file
4
Commit changes
Yes, deleting is a commit too.
The old version is still in history.
Deleting removes it from the latest version, not from past commits. That is why secrets must never be committed.
The nuclear option

Delete a whole repository.

1
Open the repo, click Settings
2
Scroll to the Danger Zone
3
Delete this repository
GitHub asks you to confirm, by typing the repo name.
Danger Zone
Change visibilityPublic or private
Change
Delete this repositoryCannot be undone casually
Delete
Hide a repo

Switch public to private.

1
Settings, scroll to the Danger Zone
2
Change visibility
3
Make private, then confirm
Switch back the same way.
Danger Zone
Change visibilityThis repository is currently public
Change
Delete this repositoryCannot be undone casually
Delete
Recap

Four questions.

01
What is a repository?
A project folder plus the full history of its changes.
02
What is README.md for?
The front page of the repo, written in Markdown.
03
Where do you change visibility?
Settings, Danger Zone, Change visibility.
04
What does Commit changes do?
Saves a new version with a message. That is a commit.
Mysore University School of Engineering logo University of Mysore crest

Next: Git on your laptop.

Bring a charged laptop. We install Git and make your first commit.
git-github-by-abhirai2006.netlify.app