Tell us what’s happening:
I used git rebase -interactive to squash the commit “fix: add missing rename table reference” with the commit “fix: add missing rename database reference”.
It looks like it worked! HOWEVER, CodeRoad doesn’t seem to recognize that I accomplished the goal. I clicked “reset” and repeated the rebase several times, and I poked around online, but I can’t seem to figure out the issue.
One hypothesis is that I made a mistake earlier with a capital S instead of a lower case s in the nano editor the first time I tried to do the squash. I tried my best to find a solution, but have hit a wall at this point. Any help would be appreciated so that I can continue with the (fantastic) course.
Here is the (truncated) output in my terminal, BEFORE rebase/squash:
codeally@53789559822b:~/project/sql_reference$ git log --oneline
1cf7083 (HEAD -> fix/add-missing-rename-references) fix: add missing rename table reference
0e082fc fix: add missing rename database reference
193e3a2 (main) feat: add column references
Here are the top two rows in the nano editor:
pick 0e082fc fix: add missing rename database reference
s 1cf7083 fix: add missing rename table reference
Here is the output, indicating success:
codeally@53789559822b:~/project/sql_reference$ git rebase --interactive HEAD~2
[detached HEAD 7b0cd89] fix: add missing rename database reference
Author: XXXX <XXXX@users.noreply.github.com>
Date: Thu Sep 9 22:47:21 2021 -0500
1 file changed, 4 insertions(+), 2 deletions(-)
Successfully rebased and updated refs/heads/fix/add-missing-rename-references.
Here is the new log:
codeally@53789559822b:~/project/sql_reference$ git log --oneline
7b0cd89 (HEAD -> fix/add-missing-rename-references) fix: add missing rename database reference
193e3a2 (main) feat: add column references
87db07c feat: add delete row reference
a72acea feat: add update row reference
88989a2 feat: add insert row reference
.... etc
Your code so far
See above
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36
Challenge: Build an SQL Reference Object
Link to the challenge: