简体   繁体   中英

Local project and git repo not matching?

I have noticed that my git repo does not match mt local project structure? Here is my git: https://github.com/BillyCharter87/Tech-O-Dex-API

Yet my local is al follows below:

在此处输入图片说明

I want my git repo to look like my local, essentially getting rid of the inital and test folders? Was my git init started in the wrong place or something?

Thanks.

As you can see from the path in the IDE your project only uses the sub directory complete instead of the whole repository. I guess that is OK, since that is where the project files and the pom.xml are located.

Not sure why the directory initial is there in the first place. It looks like a copy of the project, but maybe(?) not up to date with the contents of the complete directory. Check it. You may then want to delete either initial or complete .

If you are sure you want to remove the contents of the directories initial and test (as mentioned: check it), you can do the following in Git:

# remove both directories, intial and test
git rm -rf initial test

After that you can do a git commit to commit these changes.

The directory complete will still be there, however. If you want to move the contents of that directory up one level, you can do it as described here , which boils down to sonething like (untested):

git mv complete/* .
git rm complete
git add *
git commit

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM