in Education by

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

       A. Yes, the command will download new commits from remote and merge to the target branch

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

1 Answer

0 votes
by

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

       Ans : 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? (1)Yes, the command ... new commits and keep them in a separate branch in local repo...
asked Oct 26, 2020 in Technology 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
    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
    Which of the following creates new commit when you pull new changes from master to the feature branch? A. git rebase master B. git merge master C. git pull origin master...
asked Dec 20, 2022 in Technology by JackTerrance
0 votes
    Which command can you use to update remote refs with local refs? A. git push B. git fetch C. git pull D. git update...
asked Dec 17, 2022 in Technology by JackTerrance
0 votes
    I pulled a project from GitHub a few days ago. I've since discovered that there are several forks on GitHub, ... those forks I pulled? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    What is the Git command to create a branch? A. git invoke branch branchname B. git add branch branchname C. git create branch branchname D. git branch branchname...
asked Dec 20, 2022 in Technology by JackTerrance
0 votes
    What is the command to delete a branch in your remote repository? A. git delete branchname B. git branch -d branchname C. git push origin -d branchname D. None of the options...
asked Dec 20, 2022 in Technology by JackTerrance
0 votes
    Developers A and B are building the same feature on feature/X branch. Developer B made some changes and pushed to the remote. ... git checkout B. git log C. git pull D. git push...
asked Dec 20, 2022 in Technology 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
    What is the Git command to skip staging and commit the changes directly? A. git skip stage B. git commit C. git commit -a -m “message” D. git add changes...
asked Dec 21, 2022 in Technology by JackTerrance
0 votes
    How to delete unpublished Git commits and get rid of them permanently? A. git reset –hard B. git revert C. git reset –soft...
asked Dec 20, 2022 in Technology by JackTerrance
0 votes
    A tag in Git context is a ______. A. Keyword B. Reference to a specific commit C. Search String...
asked Dec 23, 2022 in Technology by JackTerrance
0 votes
    What does the command git checkout branchname do? A. Adds the new branch B. Switches from main branch to the new branch C. Commits the new branch D. Deletes the new branch...
asked Dec 21, 2022 in Technology by JackTerrance
...