Git and Git Workflow

Install Git and Create a GitHub account.

GitHub account

What is Git?

What’s so special about Git?

Key Concepts

(https://www.atlassian.com/git/tutorials/using-branches)

(https://nvie.com/posts/a-successful-git-branching-model/)

Typical Git project

(https://git-scm.com/book/en/v2/images/branch-and-history.png)

Branching

(https://www.atlassian.com/git/tutorials/using-branches)

Git cheat sheet

(https://services.github.com/on-demand/downloads/github-git-cheat-sheet.pdf)

Typical Git workflow

  1. Pull latest code from the remote server
  2. Write some new code or edit some existing code
  3. Add file to the staging area
  4. Commit changes with readable commit message
  5. Push the commit
  6. Repeat

(https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow)

So now, what is GitHub?

Open Source and GitHub

Typical open source Git workflow

  1. Fork or Pull latest code from the remote server
  2. Write some new code or edit some existing code
  3. Add file to the staging area
  4. Commit changes with readable commit message
  5. Push the commit
  6. Create a Pull request to the original repository
  7. Repeat

(https://guides.github.com/introduction/flow/)