Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Basic Git+GitHub

Basic Git+GitHub

Illustration of scenarios when using git and GitHub

Muhammad Aswan Syahputra

April 16, 2019
Tweet

More Decks by Muhammad Aswan Syahputra

Other Decks in Programming

Transcript

  1.    @aswansyahputra_ $ git remote add origin URL

    URL: https:/ /github.com/user/repo Remote
  2.    @aswansyahputra_ $ git add . $ git

    commit -m “did that” URL: https:/ /github.com/user/repo
  3.    @aswansyahputra_ $ git push -u origin master

    Push URL: https:/ /github.com/user/repo
  4.    @aswansyahputra_ $ git add . $ git

    commit -m “did that” URL: https:/ /github.com/user/repo
  5.     Other’s Yours Push Pull Fork 

    @aswansyahputra_ Push Pull Fetch
  6.     Other’s Yours Push Pull Fork 

    @aswansyahputra_ Push Pull Fetch Push
  7.     Other’s Yours Push Pull Fork 

    @aswansyahputra_ Push Pull Fetch
  8.     Other’s Yours Push Pull Fork 

    @aswansyahputra_ Push Pull Fetch Pull request