A branch is like a copy of your project. It’s used mainly for: adding a feature in development collaborating on the same project with other developers not breaking your entire repository not upsetting your co-workers The purpose of a branch is to i....
git checkout -b
update_script
(enter)touch
98
(enter)echo ‘#!/bin/bash’ >alx (enter)
echo “ALX School” >>alx (enter)
echo ‘#!/bin/bash’>school (enter)
echo “
The school is open!
”>>school (enter)cd .. (enter)
git add . (enter)
git commit -m “My personal work” (enter)
git push --set-upstream origin update_script (enter) – to push the branch to the main)
git checkout main (enter)
cd bash (enter)
echo ‘#!/bin/bash’ >alx (enter)
echo “ALX School is so cool!” >>alx (enter)
cd .. (enter)
rm -rf js (enter)
git add . (enter)
git commit -m 'Hot fix'
git push