1. Are you ready for the Galaxy S20? Here is everything we know so far!

[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

    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.
     


  2. spock1104

    spock1104 Android Expert

    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.
Loading...
Similar Threads - HELP properly GITHUB
  1. 000zero000
    Replies:
    0
    Views:
    18
  2. JohnJSal
    Replies:
    2
    Views:
    218
  3. bakhteyar062
    Replies:
    4
    Views:
    199
  4. PDsuns
    Replies:
    4
    Views:
    266
  5. glob_ial
    Replies:
    39
    Views:
    346
  6. Talie Hayon
    Replies:
    1
    Views:
    129
  7. Saif ullah khan
    Replies:
    4
    Views:
    44
  8. dksksks
    Replies:
    1
    Views:
    143
  9. Buddy12345678
    Replies:
    2
    Views:
    198
  10. Safia Bobat
    Replies:
    16
    Views:
    835

Share This Page

Loading...