DEV Community

Cover image for Understand Github
Mohammad Manzoor Alam
Mohammad Manzoor Alam

Posted on

Understand Github

Git is version control, where we can check in the code and look back on the history of the code how it's written.

We have to understand how GitHub Workflow works.

Alt Text

  1. Branching
  2. Commits
  3. Pull Request
  4. Collaborate
  5. Merge

GitHub Workflow - for open source :

  1. Fork: Exact copy of repository under your account
  2. Why: Permission access
  3. How: Create fork, GitHub Flow, Open pull request

Cloning Repositories:

  1. What is work locally
  2. Cloning - local vs remote

Cloning repository means we have a remote copy of the repository on the local machine, we can change our code in offline mode. Once all changes did we can make a commit to the remote repository.

Git Commands:

Git clone - get the copy of the source in local 
Git pull - Sync local repository 
Git branch - to create a branch
Git checkout - to checkout to a specific branch
Git status - to check what going on
Git add - to add in a repository
Git commit - to commit
Git push - finally push on the remote repository

Top comments (0)