Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
ce59bbf
added cool.cpp and updated README
hgarc014 Dec 9, 2014
5afe24e
added next clue
hgarc014 Dec 9, 2014
38696da
added executable
hgarc014 Dec 9, 2014
7f8e3a0
updated
hgarc014 Dec 9, 2014
122eb08
updated readme
hgarc014 Dec 9, 2014
5da0a99
updated file
hgarc014 Dec 9, 2014
f49d029
removed outputclue
hgarc014 Dec 9, 2014
837781f
added remember
hgarc014 Dec 9, 2014
617c895
changed remember
hgarc014 Dec 9, 2014
beb5631
updated README
hgarc014 Dec 9, 2014
3bae9b8
added outputclue
hgarc014 Dec 9, 2014
3922a6d
update
LinusTorvalds2014 Dec 9, 2014
19e1250
updated README
hgarc014 Dec 13, 2014
e4c9cee
updated files
hgarc014 Dec 13, 2014
cf7fc90
removed outputclue
hgarc014 Dec 13, 2014
b86878e
updated
hgarc014 Dec 13, 2014
cae58e8
added outputclue
hgarc014 Dec 13, 2014
a774ae3
updated
hgarc014 Dec 13, 2014
e9db8a3
updated README
hgarc014 Dec 13, 2014
2ee9db9
updated outputclue
hgarc014 Dec 16, 2014
62a1a5b
updated outputclue
hgarc014 Dec 16, 2014
9ecefb7
Remember me?
drami025 Dec 16, 2014
0d432b8
updated executable
hgarc014 Dec 17, 2014
b2471d3
updated README
hgarc014 Dec 19, 2014
7fc33be
updated README and script
hgarc014 Dec 19, 2014
cfe7f27
updated README and remember
hgarc014 Dec 19, 2014
d4827d2
updated remember
hgarc014 Dec 19, 2014
05888e5
updated remember
hgarc014 Dec 19, 2014
3344bd6
updated script
hgarc014 Dec 19, 2014
7940dfe
updated README
hgarc014 Dec 19, 2014
98465aa
fixed README
drami025 Dec 19, 2014
b7d9253
updated outputclue
rikusilvola Jan 8, 2015
15c2dfe
Merge pull request #7 from riqpe/tree
hgarc014 Jan 8, 2015
31e82b3
added check for OS
hgarc014 Jan 10, 2015
b7fecb4
added information for windows
hgarc014 Jan 10, 2015
754e33b
fix OSTYPE check for yosemite
StefanScherer Jan 11, 2015
d766540
Merge pull request #18 from StefanScherer/fix_for_yosemite
hgarc014 Jan 11, 2015
203fa06
make it compatible with msysgit
7c00 Jan 12, 2015
7df99c2
update README for Windows users
7c00 Jan 12, 2015
8f364f2
Merge pull request #19 from 7c00/tree
hgarc014 Jan 13, 2015
fb6fd30
level 3
hkwan003 Jun 9, 2015
18a3094
added level 6
hkwan003 Jun 9, 2015
a1db5fe
added level 7 script file
hkwan003 Jun 9, 2015
e972bb4
modified nextclue_input.cpp
hkwan003 Jun 9, 2015
b040554
added git blame resoure
hkwan003 Jun 9, 2015
f5c5727
added git merge resource
hkwan003 Jun 9, 2015
9cc552e
added level 8
hkwan003 Jun 9, 2015
7378b2e
added level 9
hkwan003 Jun 9, 2015
98491ed
Update README.md
hkwan003 Jun 10, 2015
4a05ceb
Merged branch tree with master
Feb 16, 2021
2075c20
Fixed conflict
Feb 16, 2021
80c1172
merged with tree
Feb 16, 2021
ef99241
Resolved conflict
Feb 16, 2021
0a0a28d
Resolved conflict
Feb 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
git-game


Looks like you resolved your conflict and found our branch, congrats!!

Hmm...it seems this branch has a file that was seen before in another branch.
Do you "remember" what it is?
I think this file has something to do with the next clue, but it seems to be very ugly looking.
Maybe if we compare the "diff"erences between this file and the file from before we'll know where to go next...
=======
Git Game Finish Line
==========

Expand All @@ -19,9 +29,9 @@ Well you:
- resolved merged conflicts
- saw issues with naming tags and branches the same name
- updated a local repository from a remote repository
Version control systems like git are extremely important tools to learn and use,
Especially when collaborating on projects with other developers.

Version control systems like git are extremely important tools to learn and use,
Especially when collaborating on projects with other developers.
It is our hope that you continue to practice your git skills so that you can one day become the ultimate git master!

Thanks for playing!
Expand Down
16 changes: 16 additions & 0 deletions cool.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <iostream>

using namespace std;

int main()
{
string mesg = "Hello! Who are you?";
string input;
cout << mesg << endl;
cin >> input;
cout << "Loops are fun!" << endl;
while(1);
string reply = "Well, " + input + ", we hope you are having fun with our git-game!";
cout << reply << endl;
}

10 changes: 10 additions & 0 deletions nextclue_input.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include <iostream>

using namespace std;
//Level 9
int main()
{
cout << "hope you resolved all your conflicts!!" << endl;
return 0;
}

33 changes: 33 additions & 0 deletions outputclue.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash
if [ -z $1 ]; then
echo "well, someone didn't want to run the script with a file...";
exit;
fi

file=$1
bug=7c85d987a917c2a555d1391426978f05
mesg="Level 7: \n Linus has been here...\nI love messing with these amateur programmers!!\nIf you want some real fun, then you should try resolving a conflict between this branch (tree) and code4life.\nI introduced a little bug that you should fix in the conflict. >:)\nAfter you merge these 2 files you should run the shell script again!!\n\nGood Luck!!!\n\n Hint: https://help.github.com/articles/resolving-a-merge-conflict-from-the-command-line/ "
merges=$(git log --format=%h --merges | head -1)
csum="md5sum"
if [ $(echo "$OSTYPE" | grep darwin) ];then
csum="md5"
fi

if [ "$file" = "nextclue_input.cpp" ];then
if [ ${merges} ]; then
while read p; do
for w in $p;do
if [ `echo $w | $csum | awk '{print $1}'` = $bug ];then
echo -e $mesg;
exit;
fi;
done;
done < $file ;
echo -e "Well, congratulations!! You fixed my conflict!!\nIf you would like to continue, then you should checkout to the $(echo 90mP8ouQHsNe | tr -d '0-9A-Z') branch!!\n" ;
else
echo -e $mesg;
exit;
fi;
else
echo "Looks like you passed in the wrong file";
fi
Loading