Skip to main content
GameDev.net gamedev.net
🔒 Locked

A question about Github

Started by minibutmany Feb 23, 2013 at 9:31 PM 3 replies 2.2k views
Original Post
minibutmany
minibutmany

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.

Stay gold, Pony Boy.
renega_666
renega_666

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!

alnite
alnite

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.

minibutmany
minibutmany


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.

Stay gold, Pony Boy.
alnite
alnite


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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.