GitHub Flow

What is GitHub Flow –

GitHub flow is used for collaborating on projects. It is branch based, lightweight workflow. It is extremely useful for developers, students, instructors, etc. 

Prerequisite –

  1. GitHub account shall be created.
  2. GitHub Repository shall be created.

GitHub Flow methods –

GitHub Flow can be implemented using the below methods –

  1. Command Line
  2. Web Interface
  3. GitHub CLI
  4. GitHub Desktop

Letโ€™s see Git Command Line Important commands below –

Command Line

Key commands required for Command Line implementation are given below –

  •   git clone <URL>

 Used for cloning git project at your local system. <URL> replace with your git Repository URL

  •   git branch custom-branch

To create a new/ custom branch

  •   git checkout custom-branch

To switch to new/ customer branch

  •   vi file-from-command-line.txt

To create a new file

  •   cat file-from-command-line.txt

To display file contents

  •   git add file-from-command-line.txt

To add new/ edited file to git

  •   git status

To check git status

  •   git commit -m โ€œCommit messageโ€

To commit modified/ newly added changes to git

  •   git push origin custom-branch

To push new/ custom branch to git Repository

  •   git pull origin main

To fetch changes from git Repository and update local system code with the same

Video explanation of GitHub Flow implementation using Command Line is available HERE and using Web Interface is available HERE

Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *