Which Branch
Print the name of the branch you are on, and nothing else.
Example 1
starts as
* 0cbd544 (HEAD -> feature, main, fix) one nothing to commit
prints
feature
Constraints
- The repository has 1 to 4 branches
Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.
More Git problems
- Delete the BranchEasy
- Fix the MessageEasy
- History of a FileEasy
- Leave It OutEasy
- Merge the BranchEasy
- One File Was Left OutEasy
- Rename a FileEasy
- Send It UpEasy