-
Clone the repository
git clone https://github.com/lonewol7f/EnLearn.git
cd EnLearn
-
Create a new branch for each new feature
git checkout -b branchName
- This creates the branch and checks it out (Use for creating new branch)git checkout branchName
- This checks out the branch (Use second time onward for same branch)- Be sure to always check which branch you are on using “git status” before you begin working!
-
Merge your branch
- After completing your feature you should merge your branch to main branch
git add . git commit -m “message” git push -u origin <branch name> – This creates the branch remotely and pushes to that branch on GitHub
- Go to GitHub and create a new pull request
- Once someone reviews the pull request. they will resolve any issues or conflicts that come up and approve the pull request to be merged into the main
- After completing your feature you should merge your branch to main branch
- Git cheat sheet can be found here