Sign in to follow this  
minibutmany

A question about Github

Recommended Posts

Hello,

 

I am using Git-hub to host a project my buddy and I are working on together.

We noticed how the directory system they use is a little confusing. Here is a picture of what it looks like:

[attachment=13836:git.png]

Inside of the folder called PKRB there are all of the same src, bin, and settings folders as well as the classpath file that are on the outside.

The thing is that the files in the SRC folder outside of the PKRB folder are all out of date.

Why is it keeping this old stuff out in the open? Would it be harmful to delete it? It just seems to make using git a little more confusing, to have to check which files are old and which are new.

Share this post


Link to post
Share on other sites

This looks like either your or your friend probably made a mistake during commits with git.  github (or any other git hosting services) never assumes any directory structure.  If there's two copy of them, then one (or both) of you must have committed them.  I would suggest to sync up with your friend before proceeding, and read up more stuff about proper git logistics. 

Share this post


Link to post
Share on other sites

They are not out of date, this just show you the latest commit date/message related to the file/directory.

After I switched from using WAV files to MP3 files all of my WAV files are still in the other directory, and they are not in the other.

 

Another strange issue is that only fetch works for me, not pull, and for my friend, vice versa.

Share this post


Link to post
Share on other sites

They are not out of date, this just show you the latest commit date/message related to the file/directory.

After I switched from using WAV files to MP3 files all of my WAV files are still in the other directory, and they are not in the other.

 

Another strange issue is that only fetch works for me, not pull, and for my friend, vice versa.

 

Your local copy is probably messed up.

 

Every project should have a git url.  Something like git@github.com:username/projectname.git..  Go to another folder, then do [tt]git clone git@github.com:username/projectname.git[/tt].  git will create a new folder called [tt]projectname[/tt].  If you go to that folder, you should see the same directory structure as the one you see on github.

 

Start cleaning up your project from this folder.  You should read http://git-scm.com/documentation.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this