A Guide to Git & GitHub

In this course we will be learning about version control especially Git and GitHub which provides hosting for Git version control.

Make changes

It’s now time to modify our university page.

Update index.html file by by updating the welcome statement like below.

“<p>Welcome to the awesome university</p>”

on linux you can do this with a single command

$ echo "<p>Welcome to the awesome university</p>" > index.html

Try running the git status command again.

$ git status

You should see,

On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   index.html

no changes added to commit (use "git add" and/or "git commit -a")

The inddex.html file appears under a section named “Changes not staged for commit” — which means that a file that is tracked has been modified in the working directory but not yet staged.
Previous Next

Unlock Your Potential with Engineeous

Get Started