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 8410203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:06:59+00:00 2026-06-10T00:06:59+00:00

I can never seem to figure out how to use git. I just do

  • 0

I can never seem to figure out how to use git. I just do random commands and it works eventually. This is what I usually do when I want to push:

  • Fetch from upstream

  • Commit

  • Push to upstream

However, the above steps don’t work sometimes. For example, when I do fetch from upstream, my local branch doesn’t get updated.

How do I merge the remote branch into my local branch? Is there a difference between pull and fetch?

  • 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-06-10T00:07:01+00:00Added an answer on June 10, 2026 at 12:07 am

    “git pull” is equivalent to “git fetch” followed by “git merge”

    What you want to do is:

    git commit -am "your message here"
    

    This commits your current changes locally, and only locally. Now, assuming branch “foo”:

    git pull origin foo
    

    This does a “git fetch” followed by a “git merge”. Everything in this step is done to your local branch, and still has no effect on the remote branch. Depending on how your git is setup, you might need to specify the branch.

    If you have a merge conflict, you will have to fix the files listed, then add them back:

    git add path/to/resolved.file
    

    When you are done, push everything you have from your local changes, to the remote server:

    git push origin foo
    

    If you pull before committing, that might cause your local branch to not be updated.

    tl;dr, always commit before pulling!

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

Sidebar

Related Questions

I am just learning MVC and can't seem to figure out how to handle
I can't seem to figure this out for the life of me. I have
I seem to have a bizarre error I just can't quite figure out. My
Alright, I've been at this for days and can't seem to figure out what
I've never been good with regex and I can't seem to get this... I
I am trying to use the jQuery UI, but I can't seem to figure
Forgive me if this is basic. I've never made one before and can't seem
I can't figure out why my icons are formatting in this way. They are
I'm trying to figure out how to use Loaders in Android 3.0 but can't
This is something that I figure should be straightforward, but I can't seem to

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.