1. Download our Official Android App: Forums for Android!

ROMs [HELP]How to properly use GITHUB??

Discussion in 'Android Development' started by HasH_BrowN, Mar 27, 2016.

  1. HasH_BrowN

    HasH_BrowN Android Expert
    Thread Starter
    Rank:
    None
    Points:
    173
    Posts:
    829
    Joined:
    Jun 11, 2015

    Jun 11, 2015
    829
    467
    173
    Male
    Leesburg, Fl
    I'm wanting to get more into development, but I'm at a standstill. The way to use github is eluding me. It's another language to me right now.
    I have an account setup, but lack the knowledge on how to properly use and how to properly implement the information. I can get a build environment setup, That's not the problem. I just need a nudge or so in the right direction.

    Anybody have a few moments to help someone willing to learn?
    Thanks in advance.
     

    Advertisement

  2. spock1104

    spock1104 Android Expert
    Rank:
    None
    Points:
    223
    Posts:
    1,038
    Joined:
    Jul 9, 2013

    Jul 9, 2013
    1,038
    905
    223
    I'd be happy to help, but I'm generally better at answering questions than I am providing a good up-front explanation.

    Basics:
    When software is written and changed, it's good practice to have a system that tracks all code changes. This way you can go forward or backward in the code "timeline" and others can easily review changes that have been made. A popular open source Configuration Management (CM) program is Git, and is used by both Linux (it was developed by Linus to replace an older CM system, for Linux kernel development) and Android. Each project, or even pieces of a project, is stored in what's called a repository, which tracks all of the changes.

    Github is an online storage for Git repositories, one of several but probably the most popular. Not only does it store the repository, but you can view the contents and even make edits directly.

    Generally though, you would just use Github to clone an existing repository, and then a Git client on your computer to clone that repository on your computer. From there you can use the source code, make changes, commit changes, and upload those changes back to Github for people to see.

    But the most powerful part of this is that you can also see the changes other people make and apply those same changes. Git has three functions that help out with this and are a matter of preference as to which you use, but the result is the same, mostly automatic code patching. The functions are 'git cherry-pick' 'git am' and 'git patch'. googling those will yield far more information than I can attempt to put here. My best suggestion is a little trial and error making a few changes to some code and then you'll get the hang of it.
     
    #2 spock1104, Mar 28, 2016
    Last edited: Mar 29, 2016
    HasH_BrowN and svim like this.

Share This Page

Loading...