SOFTWARE ENGINEERING

EMERGING TRENDS IN SOFTWARE ENGINEERING

DEVOPS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In Git, if you want to make your local repository reflect changes that have been made in a remote (tracked) repository, you should run the pull command
A
True
B
False
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -The commit command updates Bob’s local repository to reflect the changes. The push command updates the remote repository to reflect the changes in Bob’s local repository.

Detailed explanation-2: -If you already have a local branch and want to set it to a remote branch you just pulled down, or want to change the upstream branch you’re tracking, you can use the-u or–set-upstream-to option to git branch to explicitly set it at any time.

Detailed explanation-3: -git pull upstream master-pull down any changes and sync the local repo with the central repo. make changes, git add and git commit. git push origin master-push your changes up to your fork. Repeat. 08-Apr-2021

There is 1 question to complete.