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

  • Home
  • SEARCH
  • 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 8264441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:27:30+00:00 2026-06-08T04:27:30+00:00

I am working with two branches test and main . So, being on the

  • 0

I am working with two branches test and main.

So, being on the main branch, I did :

git merge test

And everything went fine. All the changes were merged.

Then to push it to the remote main, I did :

git push

But it seems like that did nothing, it said :

Total 0 (delta 0), reused 0 (delta 0)
To git@github.com:Company/My-App.git
b878c9d..0dc7fbe  main -> main

I don’t think it should be showing zero above as Total if the push did go through fine.

How can I push my main branch ?

  • 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-08T04:27:31+00:00Added an answer on June 8, 2026 at 4:27 am

    That just means git does not write any objects. That happens when all objects are already on remote and when you merge you just move label ‘main’ to the latest commit. I just made a quick test to prove that:

        ~/workspace
        $ git clone git@github.com:korin/test_merge.git
        Cloning into 'test_merge'...
        remote: Counting objects: 3, done.
        remote: Total 3 (delta 0), reused 0 (delta 0)
        Receiving objects: 100% (3/3), done.
    
        ~/workspace
        $ cd test_merge
        ~/workspace/test_merge
    
        $ git co -b test
        Switched to a new branch 'test'
    
        ~/workspace/test_merge
        $ echo 'a' > a
    
        ~/workspace/test_merge
        $ git add .
    
        ~/workspace/test_merge
        $ git ci -m 'a'
        [test 9953350] a
         1 file changed, 1 insertion(+)
         create mode 100644 a
    
        ~/workspace/test_merge
        $ git push --set-upstream origin test
        Counting objects: 4, done.
        Delta compression using up to 4 threads.
        Compressing objects: 100% (2/2), done.
        Writing objects: 100% (3/3), 273 bytes, done.
        Total 3 (delta 0), reused 0 (delta 0)
        To git@github.com:korin/test_merge.git
         * [new branch]      test -> test
        Branch test set up to track remote branch test from origin.
    
        ~/workspace/test_merge
        $ g co master
        Switched to branch 'master'
    
        ~/workspace/test_merge
        $ g merge test
        Updating f5e0184..9953350
        Fast-forward
         a |    1 +
         1 file changed, 1 insertion(+)
         create mode 100644 a
    
        ~/workspace/test_merge
        $ g push
        Total 0 (delta 0), reused 0 (delta 0)
        To git@github.com:korin/test_merge.git
             f5e0184..9953350  master -> master
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a Git repository with two main branches and two main folders.
Imagine the following situation: I have two branches: DEV and MAIN. I'm working on
I am working on a local git repository. There are two branches, master and
I'm working with a branch that I need to split up in two branches:
In GitHub, I have two branches working and master branch. Now I wanted to
Is there any way of simulating a git merge between two branches, the current
I've got two branches from my master: v2.1 : (version 2) I've been working
I'm currently working on two projects simultaneously: My main project (built with maven) A
I have two branches to my project, master and test branches . when I'm
Is Mercurial always using the external merge tools when two branches that are merging

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.