The repository on the Git server is called a remote.
When you clone it, Git saves its address under the nameorigin:
Figure 1 - origin Is the Name of the Remote
To see this name and its address, you use
git remote -vlike this:netops@automation:~/automation/netauto$ git remote -v origin http://10.0.0.10/netauto.git (fetch) origin http://10.0.0.10/netauto.git (push)Answer the question below
A teammate clones the same repository on another server. In her repository, the remote has the name ______
A teammate tells you that VLAN 70 is in
vlans.yaml, but your file stops at VLAN 30.
Her commit is on the remote. To get it, you usegit pull:
Figure 2 - git pull Brings the Commit of a Teammate
You write the name of the remote, then the branch to get:
netops@automation:~/automation/netauto$ git pull origin main ... Updating b30af4e..c7383da Fast-forward vlans.yaml | 1 + 1 file changed, 1 insertion(+)In the lab, a teammate sent a new commit to
mainon the remote.
Pull it to answer the question.Answer the question below
What is the name of the VLAN that your teammate added?
A commit stays in your repository until you send it.
To send your commits to the remote, you usegit push:
Figure 3 - git push Sends Your New Commit
You write the name of the remote, then the branch. The Git server then asks for a username and a password.
In the lab, they arenetopsandautomation. The password does not show when you type it:netops@automation:~/automation/netauto$ git push origin main Username for 'http://10.0.0.10': netops Password for 'http://netops@10.0.0.10': ... To http://10.0.0.10/netauto.git 9404f3a..500c9cf main -> mainIn the lab, you need to:
In the Editor tab, create the file
sw3.yamlwith the linehostname: SW3.Stage the file and commit it.
Push your commit.
Answer the question below
Enter the flag you obtained.