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 6386685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:03:25+00:00 2026-05-25T03:03:25+00:00

So, I have a project that was originally under git version control, The project

  • 0

So, I have a project that was originally under git version control,
The project has since had all git related files removed (afaik).

So when I try to add it back under version control (using PHP Storm) I get told that

Some configured Git VCS roots are not under Git or have Git repositories in subdirectories without configured VCS root

Which I am assuming means there is still a trace of git left in there somewhere.

I am using ubuntu so I cd‘d to the root directory, then did ls -Ra | grep .git but nothing showed up. so what am I doing wrong? where could the git stuff be hiding?

and, once I remove it, how do I add this project back into git control? is there other than choosing the right repo that I will need to do?


After a bit of research I came across this article which seems to say that phpstorm looks to your resource root instead of project root for the version control info.

Now my structure is

/unity/nz <- under it’s own version control
/unity/au <- trying to add to version control

So this could be the problem..

So maybe i’ll do this without php storm, so my second question still stands,
How do I add this back under version control in the same repo (terminal commands would be useful!)

  • 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-05-25T03:03:26+00:00Added an answer on May 25, 2026 at 3:03 am

    From the au directory, you’re just going to repeat the repo “init” process we went through in the comments.

    git init

    Now you’ve got your repository. You’ve got two options here; either add files for tracking, or setup your .gitignore file to start ignoring things that you don’t want in your repository. I usually setup .gitignore first. You can open it in a text editor and fire away.

    After that, you add the .gitignore with the following:

    git add .gitignore

    and commit with:

    git commit -m ".gitignore in place"

    With that in place, you can type:

    git add .

    Which adds all of the files in the au directory (and subdirectories) for tracking. It’ll check the .gitignore file first and not include those files for tracking.

    You can type git status at any time to get some useful information about what you’re currently doing. You’ll need to commit the files you added:

    git commit -m "initial commit"

    And now you’re tracking them, so when you save from PHP Storm, you can go back to the terminal and type:

    git status

    This will show you the file that you changed. You can add it (or, if you’ve made changes to x amount of files, you can add those too) with the git add . command. Commit with a helpful message and you’re good to go.

    At this point, you can setup your github repo as a remote. More info on that here. Once you’ve done that, you can push the current history to github:

    (assuming empty remote)

    git push remote master

    I see you’re working on something web related, so I suggest you take a look at this post for using a branching model. This helps a lot. If you practice this, I think you’ll prefer it to working with a client or any other method 🙂

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

Sidebar

Related Questions

I have a project under source control (remote SVN). Originally the project had just
In my current project we have a large repository of content that was originally
I have a project that has a makefile with broken dependencies. Is there any
I have a project that has the following line in the additional includes section:
I have taken over a medium sized project that was written originally using RoR.
I have a project versioned with Git that I'd like to make open source,
I have a very simple VS2005 deployment project that aims to install for all
I have project that I'm working on that is going to require a webserver.
I have a project that I'm currently working on but it currently only supports
I have a project that I would like to start beta testing soon, 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.