git checkout main
git branch change1
git checkout change1
.AdminDB/migrations/R__get_database_size_space_used.sql
git status git add -A git commit -m "updating description"
Q: What would the new branch contain if we created it while we had change1 checked out after committing a change?
We can created a branch and check it out in one command with the -b parameter:
git checkout main git checkout -b change2
.AdminDB/migrations/R__get_database_size_space_used.sql
git add -A git commit -m "updating documentation"
git checkout main git merge change2
git merge change1
git branch git branch -d change1 git branch -d change2