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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:27:05+00:00 2026-06-07T17:27:05+00:00

I guess I’m just missing some important point in git. I’m using PhpStorm IDE

  • 0

I guess I’m just missing some important point in git.
I’m using PhpStorm IDE for development process and GIT as a VCS.
Everytime I pull changes from one of the developers branches I get a list of commits of other developers, it’s perfectly normal. But when I’m pushing the changes I push not only my commits a made locally but also commits that were retrieved with pull.

But why is this happening? Why other developers commits is in my push? I though as long as GIT stores those developers commits on remote branch they are already pushed. Am I missing something?

GIT commands (according to IDE history):

git pull --no-stat -v --progress origin trunk

git push origin trunk:trunk

GIT version: 1.7.4.4, OS: Mac OS X 10.7

  • 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-07T17:27:07+00:00Added an answer on June 7, 2026 at 5:27 pm

    As Vonc said, when you run git pull origin trunk, git first runs a fetch (git fetch origin trunk), which takes the branch ‘trunk’ from the remote ‘origin’, and stores it in FETCH_HEAD.

    Note that this is potentially unexpected behaviour, and a very good reason not to use the “4-argument” forms of git-pull and git-fetch.

    Anyway, after running the fetch, git runs git merge FETCH_HEAD. This takes the newly-fetched remote branch, and merges it into the local branch. You’ve just taken you local branch, and the ‘trunk’ branch from ‘origin’, and merged them together.

    If you’re having trouble visualising this, try running gitk or git log --graph --oneline --decorate to view the history graphically. You should be able to see the two lines of history (yours and the remote one) being merged together. git log, without --graph or --first-parent, etc, will display all commits reachable from the current branch, but won’t distinguish between which branch they’re actually on.

    Unsurprisingly, then, when you run git push, git takes this merged history, and pushes it.

    You probably meant to run git fetch or git fetch origin rather than git pull origin trunk. This will fetch the updated branches from ‘origin’, and store them in your remote-tracking branches (such as ‘origin/trunk’). You can then inspect this with e.g. git log origin/trunk. If you then want to merge ‘origin/trunk’ into your local branch, use git merge origin/trunk.

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

Sidebar

Related Questions

Guess that I have a TextView that I want to update it in some
I guess I am looking for some kind of intro and see if anybody
Guess people need some experience with Linq-to-xml and knowledge of the build of a
guess its getting late, and Im a beginner, just need a little help.. Im
I guess this is easy, I seem to be missing something simple. I need
i guess this is a really simple problem, but i just can't get it
I guess I still don't get git as I'd hoped... I was creating a
I guess its just due to my lake of jquery knowledge but ill lay
I guess there should be some event for this, but didn't find any. The
I guess I am missing something very very obvious, but in my RSpec tests

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.