Module 1 Exercise 1: Git basics

screen

Captura

this is the exercise as said in the Module-1 Git Basics
@ericdrosado

I’ve already done this but I don’t know how to continue from where I left off so here it is again.

$ git init demo
Initialized empty Git repository in Z:/demo/.git/

fahy@CPSC-FAHY-9020 MINGW64 /z
$ cd demo

fahy@CPSC-FAHY-9020 MINGW64 /z/demo (master)
$ touch readme.md

fahy@CPSC-FAHY-9020 MINGW64 /z/demo (master)
$ git add readme.md

fahy@CPSC-FAHY-9020 MINGW64 /z/demo (master)
$ git status
On branch master

No commits yet

Changes to be committed:
(use “git rm --cached …” to unstage)

    new file:   readme.md

fahy@CPSC-FAHY-9020 MINGW64 /z/demo (master)
$ git reset readme.md

fahy@CPSC-FAHY-9020 MINGW64 /z/demo (master)
$ git status
On branch master

No commits yet

Untracked files:
(use “git add …” to include in what will be committed)

    readme.md

nothing added to commit but untracked files present (use “git add” to track)

fahy@CPSC-FAHY-9020 MINGW64 /z/demo (master)
$ git add readme.md

fahy@CPSC-FAHY-9020 MINGW64 /z/demo (master)
$ git status
On branch master

No commits yet

Changes to be committed:
(use “git rm --cached …” to unstage)

    new file:   readme.md

fahy@CPSC-FAHY-9020 MINGW64 /z/demo (master)
$ git commit -m ‘commit empty readme’
[master (root-commit) 366b93c] commit empty readme
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 readme.md

fahy@CPSC-FAHY-9020 MINGW64 /z/demo (master)
$ git status
On branch master
nothing to commit, working tree clean

35%20PM

The trickiest part was to figure out how to get out of the directory I made while following along with the video tutorial so that I could do the assignment! I’m very unfamiliar with command line.

image

Module-1-Basics

image

@mozzadrella Thanks for these tutorials. Here is my screenshot:
Untitled

Hi there. Here’s my screenshot:

Thanks!


Here is my screen shot from Module 1!

Exercise 1.1 Done!

Hi,

:heartpulse: