Jump to content
  • Advertisement
Sign in to follow this  
Vortez

Need help with GitHub...

This topic is 2153 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

Hey, im new to github and i have some questions i wanted to ask because i don't really want to mess this up.

 

So, i installed github, had trouble login in, but a quick google search revealed that i needed to install the .net framework 4. So far, so good, i install .net framework 4 and now i can log in into my account.

 

Now, that's the part im unsure what to do. Under some edit box, they ask "This is where the repository will be stored on your computer".

 

Im a little confused, because im used to TortoiseSVN, and when you create a repository with tortoise, it create a directory where it save the special files related to version control. But with git it sound like they're asking for the path of the source code. Am i right?

 

So, should i enter the path of my source files, or an empty new folder that will be used to store some other files?

Edited by Vortez

Share this post


Link to post
Share on other sites
Advertisement

Git and SVN at the start are "somewhat" similar.  If you already have a repository on the server, selecting a local folder just tells Git where to do the initial clone on your machine.  I.e. your local copy of all the files.  If you are simply trying to post files up to github initially, I suggest doing it in a little bit of a two step manner.  Create an initial empty repository which it sounds like what you are doing but point the local folder to an empty location.  When this completes, copy the files into the new folder and then commit them, then push to fill the remote repository.  This is simply a method of getting started easily and without hassles.  Using the command line you can initialize a local repository and then target a remote to push into, but usually the UI's are not setup for such things so this is the easy solution.

Share this post


Link to post
Share on other sites

Git does keep a hidden directory called .git, where the "version tree" is stored, but you don't really have to worry about this.

 

The easiest method to get something into your github account is to create the initial repository on github, clone it to your machine, put your files into the cloned directory, commit them, and then do a git push.

 

If you search youtube for a git/github tutorial, you'll find videos that explain this in detail.

 

There are also mini-instructions printed when you create a new repo on github, and depending on your previous experience with git, that may be enough to get you started.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!