I cannot add scene-1.txt to the git staging area


#1

I have the same problem: I cannot add scene-1.txt to the git staging area. I input the command git add scene-1.txt, but I always get the output fatal: Not a git repository (or any of the parent directories): .git . What am I doing wrong?


Adding in scene.1-txt
#2

type this it will work

git init


#3

It sounds like you aren't in the right directory. Check to see where you are and what files/directories are there with you.


#4

I'm in the home directory, and the two files in it are scene-1.txt and add_test.rb


#5

Dude you're awesome thanks it worked


#6

Can you please tell me how , I keep writing : git add scene-1.txt but it doesnt work :confused:


#7

git init
git add scene-1.txt

Look at striker81421's answer


#8

thank you :slight_smile:


#9

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.