in Technology by
edited by

When you run git fetch from my local repo, will it update your local code and target branch?

(1)Yes, the command will download new commits from remote and merge to the target

branch
(2)No, the command will only download the new commits and keep them in a separate

branch in local repo

1 Answer

0 votes
by

No, the command will only download the new commits and keep them in a separate branch in local repo

Related questions

0 votes
    When you run git fetch from my local repo, will it update your local code and target branch? A. Yes, the command ... new commits and keep them in a separate branch in local repo...
asked Dec 20, 2022 in Education by JackTerrance
0 votes
    When you run git fetch from your local repo, it will update your local changes in working area? A. True – ... It updates local repo only and does not affect the working area...
asked Dec 20, 2022 in Education by JackTerrance
0 votes
    How will you remove a file from Git without actually removing it from your local filesystem?...
asked Nov 4, 2020 in Technology by JackTerrance
0 votes
    How can I remove this file from the repo without deleting my local copy of the file?...
asked Jan 8, 2021 in Technology by JackTerrance
0 votes
    How to push a new local branch to a remote Git repository and track it too?...
asked Jan 7, 2021 in Technology by JackTerrance
0 votes
    How will you differentiate between git pull and git fetch?...
asked Nov 4, 2020 in Technology by JackTerrance
0 votes
    How will you differentiate between git pull and git fetch?...
asked Nov 4, 2020 in Technology by JackTerrance
0 votes
    How do you push a file from your local system to the GitHub repository using Git?...
asked Oct 4, 2020 in Technology by Editorial Staff
0 votes
    How can we rename a local Git branch?...
asked Jan 7, 2021 in Technology by JackTerrance
0 votes
    What is a good practice to follow when you want to backup a local branch? A. Push to remote repo B. Move to another PC C. Create another copy D. None of the options...
asked Dec 20, 2022 in Technology by JackTerrance
0 votes
    I have an old, out-of-sync project code in the master branch. Several files have been deleted, ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 12, 2022 in Education by JackTerrance
0 votes
    My git workspace is dirty, there are some local modifications. When I use the command git pull origin master it ... Ansible git module? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I don't want to rename a remote branch, as described in the Rename master branch for both local and remote ... and remote branch name Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Can you relate of an experience when you found your colleagues code to be inefficient? How did you deal with it?...
asked Jun 13, 2021 in Education by Editorial Staff
0 votes
    What is the JavaScript code snippet to update the content of the timestamp element when the user clicks on ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
...