[Tutorial] Uploading a project to GitHub using Git

Discussion in 'Resources' started by BDKing88, May 15, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    BDKing88

    Hello, this will be my first tutorial! Like the title of this thread says, this will be a tutorial on uploading a project to GitHub using Git. I understand that most people know how to do this, but this is a tutorial for people that may be starting out :) .
    Downloading Git
    Firstly, you want to go to the Official Git page to download Git. http://git-scm.com/ . There will be a monitor like so: [​IMG] click download to download. Once downloaded, install it.

    Opening Git Bash and Creating the Repo

    Okay, to open Git Bash, go to your workspace or wherever you saved your plugin project. Once in it's folder, right click and click "Git Bash". Once you have done that, a cmd window should appear. You should notice it has the directory your plugin folder is in at the top of the window. Now, firstly, type and submit *Without the quotes* "git init" to create the repository. Now type and submit "git add ." to load all the files to the repository. Type and submit "git status" after it's loaded to make sure the files have been loaded in. To make the first commit, type and submit "git commit -am"initial commit" .

    Creating the GitHub page and pushing

    So, now you must create a GitHub page for your plugin. I'm not going to go over how to do that, as there are multiple tutorials and it is very simple. Once you have created it, you should get a page like this: [​IMG]. Direct your attention to the "Push an existing repository from the command line" text box. Copy and paste the first line in that box in to your Git Bash window and click enter. After that is done, type "git push -u origin --all" . Now submit it. It should ask for your GitHub username and password, just enter those in and it will push the repository. Just refresh that page you copy and pasted that information from, and bam. You have succesfully added your project to GitHub! I hope this tutorial helped some people, and if you have any suggestions to make this tutorial better, please let me know!
     
    LordVakar, Wizehh and KingFaris11 like this.
  2. Offline

    AronTheGamer

    Nice tut
     
    BDKing88 likes this.
  3. Offline

    BDKing88

    Thanks :)
     
  4. Offline

    Wizehh

    Not a bad tutorial. You should add some information about what the basic git commands do.
     
    BDKing88 likes this.
  5. Offline

    BDKing88

    Sure, I will in the future! Thanks for the feedback :)
     
Thread Status:
Not open for further replies.

Share This Page