Tsallaka zuwa abun ciki
Justice Tech School

Practice: Feature and Merge

Branch, work, merge, clean up.

Example
echo one > a.txt && git add a.txt && git commit -qm 'first'
git switch -q -c login
echo a > login.txt && git add login.txt && git commit -qm 'Add login'
git switch -q main
git merge -q login
git branch -d login
ls

Result

Deleted branch login (was 3705a10).
a.txt
login.txt

Exercise

Merge.

git merge 

Quiz Test

What happens to the branch after -d?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.