Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8033539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:43:53+00:00 2026-06-05T01:43:53+00:00

I am struggling with Git, I can’t seem to add my files. I ran

  • 0

I am struggling with Git, I can’t seem to add my files. I ran ls to show that the files are in the current directory, then ran git add . then git status which showed “nothing to commit”.

JJ-Computer:first_app JJ$ git init

Reinitialized existing Git repository in /Users/JJ/rails_projects/first_app/.git/

JJ-Computer:first_app JJ$ ls

Diary.txt README.rdoc config.ru log   tmp
Gemfile   Rakefile  db    public    vendor
Gemfile.lock  app   doc   script
README    config    lib   test

JJ-Computer:first_app JJ$ git add .

JJ-Computer:first_app Jenn$ git status

# On branch master
nothing to commit (working directory clean)

JJ-Computer:first_app JJ$ 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:43:55+00:00Added an answer on June 5, 2026 at 1:43 am

    Your commands look correct (I’ve done them many times that way).

    First try

    git add --all
    

    and then try git status. I don’t think that will solve it, but worth trying next.

    Next try looking at your .gitignore file, if you have one (in the top level where you did git init).

    cat .gitignore
    

    Remove any listings there that are causing your files to be ignored. For example is there an entry with just *?

    Next try:

    git add --force
    

    and then try git status.

    If none of those work, I notice that your output from git init says “reinitialized” rather than “initialized”, so something may have gotten messed up. If you’ve just initialized it and don’t mind losing history, start over by removing the .git dir:

    rm -rf .git
    

    And then reexecute your same commands above. If that doesn’t work, some more information about your setup will be required. For example, you might have a global .gitignore file: ~/.gitignore_global that needs to edited (or removed if you don’t want it).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Struggling with command line again, I have figure out that I can store the
I'm quite new to Git (and VC for that matter) and I'm struggling a
I'm struggling to understand how to be able to clone a git repository from
Iam struggling with NHibernate and its lazyload. I have a structure which I simplified
Struggling a bit today. I have the following method that returns a list of
Struggling with CSS selector. Want to select all FORM elements that are ancestors of
Struggling to get my head around these MD Arrays so hoping someone can help.
I am struggling trying to make sense of using the Git subtree strategy. My
Struggling with the following problem. I have an attribute that defines the name of
Im struggling a lot with how I can format a NSDate to POST it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.