Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git flow

#Github pull request flow:
#Checkout to main and make sure local is up to date.
1. git checkout main (or master)
2. git pull
#Start new branch (or skip to step 9 if existing branch)
3. git checkout -b yourBranchName
4. #add new code
5. git add . 
6. git commit -m your message
#Go back to main branch and update local
7. git checkout main
8. git pull
9. git checkout yourBranchName
10. git merge main
11. #run local version of code to make sure functionality still works
12. git push origin yourBranchName
13. ##go to github and create a pull request
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #flow
ADD COMMENT
Topic
Name
9+6 =