SOFTWARE ENGINEERING

EMERGING TRENDS IN SOFTWARE ENGINEERING

DEVOPS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
To connect a local repository to a remote repository, you must use
A
git remote add origin <server>
B
git clone origin <server>
C
git pull origin <branch>
D
git remote commit origin <server>
Explanation: 

Detailed explanation-1: -Validate the existence of your local Git repository. Create a new, empty Git repository on your remote server. Obtain the git remote add URL for the remote repository and add credentials if needed. More items •31-Jan-2020

Detailed explanation-2: -Explanation: navigate to your local repo. tell git where the remote repo is located. upload/push your local branches to the remote repo.

Detailed explanation-3: -The git remote command lets you create, view, and delete connections to other repositories.

Detailed explanation-4: -Fetching and Pulling from Your Remotes If you clone a repository, the command automatically adds that remote repository under the name “origin”. So, git fetch origin fetches any new work that has been pushed to that server since you cloned (or last fetched from) it.

There is 1 question to complete.