The so-called bug branch means that we may encounter a bug that needs to be solved suddenly in the process of development, but the development work at hand has not been completed. At this time, we need to create a new bug branch to fix the bug. After fixing the bug, we merge the bug branch and then delete it. When the work at hand is not finished, we need to put a Git stash on the work site first, and then fix the bug. After fixing the bug, we go back to the work site through a Git Stash pop. For example, we added a line under the test1 branch, but my development work was not finished yet. At this time, there was a bug that needed to be fixed, so I first saved the work site with git Stash
issue1
issue1
--no-ff
--no-ff
fast forward
--no-ff
-m
issue1
test1
test1
git stash apply
stash
git stash drop
stash
git stash pop
git stash list
git branch -D <name>
git remote -v
git push origin branch-name
git pull
git checkout -b branch-name origin/branch-name
git branch --set-upstream branch-name origin/branch-name
git pull