Challenge Author: Jeffery John
Difficulty: Easy
Description
My team has been working very hard on new features for our flag printing program! I wonder how they’ll work together?
Process / Notes
wgetthe zip- Another git-based challenge
- There’s a python file (.py)
caton the commitedit message says to add part 3 to the program- in
refs/heads/featurehere seem to be 3 parts git log- It looks like we’re on the version with just the flag printer. So we’ll need to go to a version with everything assembled
cat refs/heads/feature/part-3- git checkout the result of that10.
- Now when we cat the python file, it also has the flag! BUT it doesn’t look like the whole flag. Going to check out the other parts next.
- Checking part 1 and it has revealed the beginning of the flag
- Part 2 contains the middle of the flag
- All together… we have the full flag
- Looking at the hints, it looks like there’s a more elegant way to solve this than checking each part individually
- From one tutorial video, it looks like we can use:
git merge <branch-name-you-got-from-the-git-branch--a-command>
16 minutes 38 seconds to complete
Hints
git branch -awill let you see the available branches- How can fill ‘diffs’ be brought to the main branch? Don’t forget to use
git config! - Merge conflicts can be tricky! Try a text editor like nano, emacs, or vim.
Core Lessons
- The
git branch -acommand to see the available branches - The
git merge <branch>command to merge in the desired git branches