In question number 7 of the ‘Fork Lab’ of ‘Git for Beginners Course’, it is asked to push the changes to the master branch of the forked repo which was forked by Jon.
While I was pushing the change, instead of using ‘origin’ as provided in the hint, I used the URL of the forked repo. It was a successful push & I verified in the Gitea UI. see below:
git push http://git.example.com/jon/story-blog.git master
However when I clicked on ‘Check’ it threw an error that the push was not done.
Later I again pushed with ‘origin’ in place of the URL of the forked repo. This time it was success on clicking the ‘Check’ button. see below
git push origin master
Am I missing something or this corner scenario was not checked ?
Also will both the forked repo & the original repo be known by the name ‘origin’ ?