Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6113885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:54:37+00:00 2026-05-23T14:54:37+00:00

I generally do the git pull command to fetch+merge with my local repositor from

  • 0

I generally do the git pull command to fetch+merge with my local repositor from remote repo

  1. Does git pull fetches+merges all the branches from github repo or just do the operation specifically for the branch upon which the refs have been defined. ??

  2. Suppose I have not defined the refs for a particular branch and if I call git pull on that, what does it do ?? I have tried to observe it many times but I do not have a complete understanding about it.

  3. I have made a lot of changes to a particular file, now if I git pull on that branch. Will my changes just go away and get merged with the pulled file. ??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:54:37+00:00Added an answer on May 23, 2026 at 2:54 pm
    1. git pull without parameters will work only if the branch you currently checked out is configured for parameterless pull, i.e. it is a tracking branch. You can see branches configured for parameterless pull and push by using git remote show remotename

    2. in this case it will actually print out a text saying that you didn’t specify the branch with which you expect git to work

    3. If your changes are committed and not conflicting with whatever you have pulled from remote – they will be merged together. They will not go away. OTOH if you know or think that the the remote branch might have changes that your local branch doesn’t have i would recommend to use git pull --rebase. If your changes are not committed the operation will be aborted and you will have to commit those or stash

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to fetch everything from a few different, distinct repositories (all remote branches
From the man page on git-merge, there are a number of merge strategies you
My repo is SVN, and I do all development with git. We have a
We use TeamCity for continuous integration and Git for source control. Generally it works
I want to be able to sync a work repo from my Windows 7
Everywhere I read about Mercurial and Git they generally throw in a line or
We're using a git post-receive hook to auto-minify our JS and sync our local
I currently use Git, and am generally happy with it, but I'd like to
There was a small discussion about what git does and doesn't do by default
My usual workflow when working with git, is something like this: create a local

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.