Jump to content

  • Log In with Google      Sign In   
  • Create Account


A question about Github


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 minibutmany   Members   -  Reputation: 1471

Like
0Likes
Like

Posted 23 February 2013 - 03:31 PM

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:

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.

Sponsor:

#2 ColinDuquesnoy   Members   -  Reputation: 1067

Like
0Likes
Like

Posted 23 February 2013 - 04:41 PM

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, 23 February 2013 - 04:48 PM.


#3 alnite   Crossbones+   -  Reputation: 2038

Like
2Likes
Like

Posted 23 February 2013 - 05:32 PM

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. 



#4 minibutmany   Members   -  Reputation: 1471

Like
0Likes
Like

Posted 23 February 2013 - 06:12 PM

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.

#5 alnite   Crossbones+   -  Reputation: 2038

Like
1Likes
Like

Posted 23 February 2013 - 08:08 PM

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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS