5.git add


#1

I am stuck . help


#2

sounds like you are in the wrong working directory, run the following command to see the files in the current directory:

ls

to see which directory you are currently in run:

pwd

use the following command to navigate to a folder:

cd foldername

where foldername is the name of the folder


#3

2 posts were split to a new topic: 5. Not sure why it doesn't work?


#4

I have done it .. you just have to write : $ git add score-1.txt


#5

you have to type git add scene-1.txt


#7

i did that and it didn't work for me.


#8

First initialize your git repository by typing

git init

Then do

git add scene-1.txt


#9

You can try typing, "git add scene-1.txt" (enter) and "git status" (enter)

How I know...

For number 1. They asked to "Add scene-1.txt to the staging area in Git", therefore "git add scene-1.txt"

For number 2. They told us to "Check the status of the project in Git", therefore "git status"

This work perfectly fine for me.


#10

Good answer, thank you.


#11

this is how it should be written down
git add scene-1.txt


#12

Thank you so much for your helping! it works!


#13

i was stuck same place, thank you for your help


#14

What foldername I should write? cd foldername
it showed me that I'm in /home/ccuser/workspace/sorcerers-code

but when I write:
$ git add score-1.txt

it is not work. There is a massege:
fatal: not a git repository


#15

oh, it is started work when I pressed: get help - I want to restart this exirse
than I pressed F5


#16

That is weird, there should be a git repository. Either way, i then suggest you then create one:

git init

#17

Thanks mate that worked


#18