FAQ: Basic Git Workflow - git add

#1

This community-built FAQ covers the “git add” exercise from the lesson “Basic Git Workflow”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development
Computer Science

Learn Git

FAQs on the exercise git add

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

#2

I wasn’t able to get the solution.

I wrote:
git add scene-1.txt

but it didn’t get through. What did i miss here?

#3

I am having the same issue.

The answer clearly seems to be:
git add scene-1.txt

But I am still getting an error. When I click to auto-solve the exercise, it does not explain anything. Is this a bug?

#4

First, you must type:
git init
Then you can type:
git add scene-1.txt

2 Likes
#5

@thestephenbell Why is there nothing that explains that tho?