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 –
- GitHub account shall be created.
- GitHub Repository shall be created.
GitHub Flow methods –
GitHub Flow can be implemented using the below methods –
- Command Line
- Web Interface
- GitHub CLI
- 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