Task 7 of Lab GIT-Remote repositories

Q. In your cloned repository i.e /home/thor/remoterepo create a file index.html with content This is a sample file . Track the new file, commit the changes and finally push the same to remote repo in master branch.

=> We are creating html file and then committing it. For pushing code on remote repo, using command
git push origin master

why are we using as origin and not github or some other name. On using other names its showing error.

Hi @uzmashafi061,
That name contains your repository URLs. If you run the following command, it will clear your doubts.

git remote -v

You can use the git remote add command if you want to write a different name.

git remote add github REPO-URL


1 Like