How to add folders to files to GitHub?
Results 1 to 5 of 5

Thread: How to add folders to files to GitHub?

  1. #1
    Senior Member
    Join Date
    Sep 2011
    Posts
    258

    How to add folders to files to GitHub?

    Well lets assume I have an account on GitHub called MyAccount(placeholder really, but hope it helps a bit), and I have a folder on my own desktop located at C:\Users\Username\Documents\GitHub\MyRepository. After I create this repository in Git GUI, what can I do to actually upload files within the MyRepository folder to GitHub? Is there no way to do this in IDEs like Netbeans? I am a bit lost when it comes down to command prompt though.

  2. #2
    Pedantic Curmudgeon Weedpacket's Avatar
    Join Date
    Aug 2002
    Location
    General Systems Vehicle "Thrilled To Be Here"
    Posts
    21,906
    I presume one would use git, e.g.

    https://help.github.com/articles/create-a-repo

    Most IDEs (including Netbeans) support git either natively or with an extension. There are also GUI clients (Git's own site lists half a dozen for Windows, some of them including Explorer integration).
    THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER
    FAQs! FAQs! FAQs! Most forums have them!
    Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all

  3. #3
    Senior Member
    Join Date
    Sep 2011
    Posts
    258
    Yeah I suppose most IDEs do support GIT, I just havent been able to figure out how to use that feature. I did read the article you mentioned from Github, and it gets me more confused than before. *sigh*

  4. #4
    PHP Witch laserlight's Avatar
    Join Date
    Apr 2003
    Location
    Singapore
    Posts
    13,569
    Quote Originally Posted by Lord Yggdrasill
    After I create this repository in Git GUI, what can I do to actually upload files within the MyRepository folder to GitHub?
    If you have already created the repository locally, you can still create the repository on Github. When you do that, Github will show you the URL to use to push to that repository on Github. What you can do is to set your local git repository to have that Github repository as the origin, e.g.,
    git remote set-url origin https://github.com/MyAccount/myproject.git
    then do a git push origin master. You may be able to use your GUI tool to do this, but I'm afraid that I don't know the details.
    Use Bazaar for your version control system
    Read the PHP Spellbook
    Learn How To Ask Questions The Smart Way

  5. #5
    Senior Member traq's Avatar
    Join Date
    Jun 2011
    Location
    so.Cal
    Posts
    949
    Quote Originally Posted by Lord Yggdrasill View Post
    Yeah I suppose most IDEs do support GIT, I just havent been able to figure out how to use that feature. I did read the article you mentioned from Github, and it gets me more confused than before. *sigh*
    Actually, that github article is spot-on-easy. Just try it (you can always delete your repo and start over if you mess up). Just follow the instructions, one at a time. Doesn't even matter if you quite understand what going on right away. You'll get it. And the command line isn't as confusing as it seems.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •