Jump to content
  • Advertisement
Sign in to follow this  
minibutmany

A question about Github

This topic is 1942 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement

They are not out of date, this just show you the latest commit date/message related to the file/directory. You must NOT delete them!

Edited by renega_666

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 git clone git@github.com:username/projectname.git.  git will create a new folder called projectname.  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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!