Git and GitHub Basics:
The GitHub flow is a lightweight workflow that lets you experiment with new ideas safely, without fear of compromising a project. The main steps are:
Create a branch off of main
Make commits
Open a pull request
Collaborate
Make more commits
Discuss and review code with team members
Deploy for final testing
Merge your branch into the main branch
Create a Branch
Branching is a key concept within Git. Everything in Git lives on a branch. By default, the production version of your project lives in the main branch.
When you’re ready to experiment with a new feature or fix an issue, create a new branch of the project. The branch will look exactly like main at first, but any changes you make will only be reflected in your branch.
Make Commits
As you make changes to the files within the project, commit them to your feature branch.
Open a Pull Request and Collaborate
Open a pull request to start discussing your changes. A pull request is meant to be a starting point for further code refinement—no need for it to be a perfect work of art.
Watch video Work with the GitHub Workflow | Git and GitHub Basics online without registration, duration 01 minute 18 second in high hd quality. This video was added by user Saurabh Infotech Solutions 28 November 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5 thousand once and liked it 7 people.