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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:47:05+00:00 2026-05-31T16:47:05+00:00

I have a master branch, and another_branch with twice as many files in it.

  • 0

I have a master branch, and another_branch with twice as many files in it.

How come when I git checkout master then git merge another_branch it says Already up-to-date. and doesn’t merge the extra files into master?

(Yes, i have already done git add . while having another_branch checked out. git commit says there is nothing to commit.)

I already saw this post and this post, but so far nothing worked.

EDIT: The master branch has files, and the another_branch branch has the same files plus more. Why won’t those extra files be merged?

EDIT: I solved the problem by copying the files from another-branch to an external folder, checking out master, copying the files back in from the external folder, and adding all the new files and making a new commit.

Come to think of it, I think if I made a small change in another_branch then committed, I would have been able to merge everything into master, but I didn’t get to try it out.

  • 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-31T16:47:06+00:00Added an answer on May 31, 2026 at 4:47 pm

    You must commit your files on another_branch. Simply adding them with git add . is not enough.

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

Sidebar

Related Questions

I have master branch of the project. Then I want to add a new
I have already got a local master branch tracking the remote master branch of
We have a git based project with a friend and one master branch. He
I have a simple Git repo with non-branching commits in the master branch. I
I have a git repo with a dev and a master branch. Now I
I have a Git repository which I have started to develop on master branch
I have a branch which I've merged into master. On the branch, git log
I'm pretty new to Git. Right now I only have a master branch for
I have a master branch that was branched from by another dev, who then
In my repository, I have a master branch and then a staging branch coming

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.