Prompt
Analyze a git project and find some hidden flags. You can try to clone the repository but that might not work for you. If not, you'll need to find a way around it.
Walk-Through
This challenge hints at some kind of git repository with its name. If you are not familiar with git, it is a code version control system - think Google Drive (with revision history) but specifically designed to track code. You can interact with a git repository through a number of different ways - you can use the git command line utility or use a web browser if the git server provides a web interface. The most common implementations of git are Github and Gitlab.
Accessing the Repository Through the Command Line Interface (CLI)
To access it via a command line tool, you can install the git command line tool and issue the command:
git clone [git repository url]This command will create a new directory in the current working directory with the same name as the repository name.
From there, you can change into that directory to navigate around and inspect the files and revision history. A few good commands to know about git are the following:
git log- show a history log of all the commits (changes) made on the current branchgit log [branch name]- show a history log of all the commits on the target branchgit show [commit hash]- show the diff (specific addition/deletions) in that commit. The command hash is show in thegit logcommand.git branch- shows the different working branches (used to logically separate different works in progress)git checkout [branch name]- switch to a different branch
You can now use these commands to inspect the repository and answer the challenge questions!
Many times, git will show you the output in a paginated fashion, so you can use the up ⬆️ and down ⬇️ arrow keys on your keyboard to scroll. You can also press the space bar key to scroll to the next page.
Once you are done viewing, press the q key on your keyboard to quit.
Accessing the Repository Through the Browser (Web)
The provided git repository URL is in the form of: git@[hostname]:[username]/[repository name].git. To break it down:
- the hostname of the server hosting a copy of the git repository
- the username of the user that owns the repository
- the repository name is the beginning/root of the repository
To access it via the browser, you can restructure the URL as a web URL which will generally have the convention of https://[hostname]/[username]/[repository name]. You can open your web browser and construct the URL to match that convention and navigate to it to begin exploring the repository with a more graphical user interface in lieu of using the command line based git tool.
For this particular challenge, the web URL will be https://gitlab.com/cybergit4823/my-awesome-flag-project.git
Guide
To solve this challenge, solutions are shown for using git with the command line and via the web. Choose whichever method works best for you, or try both!
To find the display name of the author of a git project or view commit hashes look in the “history” or run git log. Both will display the same information in different formats.
Command Line Interface
Enter the my-awesome-flag-project directory that was created.
Run git log and view the Author field
Run git log and press the space bar until you reach the end (or press shift + G to instantly scroll to the end) to find the hexadecimal hash digest for the very first commit and only copy the first 8 characters of the hash digest.
Web Interface
Click on the “History” button.
The “History” button will show you a listing of all the commits, the short commit hash is shown on the right as the 8 character field.
View the Author from the dropdown on the history page.
A commit is a snapshot of the project’s history in time. Usually, an initial commit is needed to begin a project so that there is a starting point in the history.
To find the flags, explore the various files and branches in the repository. Use some of the commands specified above to investigate. If you get stuck, the locations of the flags are detailed in the steps below.
Flag 1 and Flag 3 are found within two different text files.
Command Line Interface
README.md and flag3.txt appear to be the only files in the repository when the project is initially cloned.
For Flag 1, reveal the contents of the initial README.md file using the command: cat README.md
Reveal the contents of the flag3.txt file using the command: cat flag3.txt
Web Interface
On the initial page, the web interface should display the contents of README.md for you automatically.
Click to open flag3.txt on the web interface.
Flag 2 in on another branch. First, determine where to find all of the branches. Then navigate to the branch with Flag 2.
Command Line Interface
Run git branch to see what other branches exist and one of them will show a branch named flag2.
Run git checkout flag2 to switch to the branch and then run ls to see flag2.txt as a new file on the branch.
Open the file using cat.
To switch back to the original branch, run git checkout master (most repos will use the default branch name of either master or main).
Web Interface
Click on “master” to see what other branches exist. Another branch is named “flag2”. Click on that branch to inspect its files.
You will find a new file named flag2.txt on this branch, click on that file to view its contents.
You can switch back to the default branch by clicking on “2 branches” in the sidebar again and selecting the default branch.
Flag 4 and Flag 5 can be found via the commits. This can be found using git log or “History”.
Command Line Interface
Run git log to find the commit hash with the associated commit message of “Added flag4”. Copy the hash, and then run git show [commit hash] to view the commit diff
Run git log and you will find that one of the commit messages indicates what Flag 5 is.
Web Interface
Click on the “History” button and then click on the commit with the commit message of “Added flag4” to view the commit diff
For one of the commits, the commit message is truncated by the web interface, click on the ellipsis to expand the commit message and reveal Flag 5.
Useful Tools for this Challenge:
- https://git-scm.com/book/en/v2/Getting-Started-Installing-Git - Install Git on Linux or Windows
Questions
What is the display name of the author of this git project?
What is the short commit hash (first 8 characters) of the initial commit?
What is flag #1?
What is flag #2?
What is flag #3?
What is flag #4?
What is flag #5?
©️ 2026 Cyber Skyline. All Rights Reserved. Unauthorized reproduction or distribution of this copyrighted work is illegal.