Loading…
Let's simulate Git branches using folders to understand the concept!
You have a website on main and want to try adding a new feature.
branches/main folder with an index.html file containing "Welcome to my site"branches/feature folder that's a copy of branches/main (this simulates creating a branch!)index.html (this simulates working on your branch)index.html back to mainWhen done, branches/main/index.html should contain the word navbar.
Think about: What commands do you know for creating directories, writing to files, copying folders, and appending text?
Loading terminal engine...
This may take a moment on first load