Need help with GitHub...

Started by
1 comment, last by Goran Milovanovic 10 years, 4 months ago

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?

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.

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.

+---------------------------------------------------------------------+

| Game Dev video tutorials -> http://www.youtube.com/goranmilovano | +---------------------------------------------------------------------+

This topic is closed to new replies.

Advertisement