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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:18:35+00:00 2026-06-09T10:18:35+00:00

How do I merge this branch to master? thufir@dur:~/NetBeansProjects$ thufir@dur:~/NetBeansProjects$ git clone -b 4.GUI_loading_messages_slowly

  • 0

How do I merge this branch to master?

thufir@dur:~/NetBeansProjects$ 
thufir@dur:~/NetBeansProjects$ git clone -b 4.GUI_loading_messages_slowly git@github.com:THUFIR/USENET.git
Cloning into USENET...
remote: Counting objects: 3782, done.
remote: Compressing objects: 100% (1274/1274), done.
remote: Total 3782 (delta 1647), reused 3613 (delta 1478)
Receiving objects: 100% (3782/3782), 388.55 KiB | 100 KiB/s, done.
Resolving deltas: 100% (1647/1647), done.
thufir@dur:~/NetBeansProjects$ 
thufir@dur:~/NetBeansProjects$ cd USENET
thufir@dur:~/NetBeansProjects/USENET$ 
thufir@dur:~/NetBeansProjects/USENET$ git branch -a
* 4.GUI_loading_messages_slowly
  remotes/origin/1.FetchBean_CLI
  remotes/origin/2.some_GUI
  remotes/origin/3.messageId__string
  remotes/origin/4.GUI_loading_messages_slowly
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
thufir@dur:~/NetBeansProjects/USENET$ 
thufir@dur:~/NetBeansProjects/USENET$ git checkout -b master remotes/origin/master
Branch master set up to track remote branch master from origin.
Switched to a new branch 'master'
thufir@dur:~/NetBeansProjects/USENET$ 
thufir@dur:~/NetBeansProjects/USENET$ git branch
  4.GUI_loading_messages_slowly
* master
thufir@dur:~/NetBeansProjects/USENET$ 
thufir@dur:~/NetBeansProjects/USENET$ git diff master 4.GUI_loading_messages_slowly 
diff --git a/src/META-INF/persistence.xml b/src/META-INF/persistence.xml
index 252f563..3cebe3d 100644
--- a/src/META-INF/persistence.xml
+++ b/src/META-INF/persistence.xml
@@ -2,8 +2,8 @@
 <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http:/
   <persistence-unit name="USENETPU" transaction-type="RESOURCE_LOCAL">
     <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
-    <class>net.bounceme.dur.usenet.database.Article</class>
-    <class>net.bounceme.dur.usenet.database.Headers</class>
+    <class>net.bounceme.dur.usenet.model.Article</class>
+    <class>net.bounceme.dur.usenet.model.Newsgroup</class>
     <properties>
       <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/usenet
       <property name="javax.persistence.jdbc.password" value="password"/>
diff --git a/src/net/bounceme/dur/usenet/controller/ArticleNewsgroup.java b/src/net/bounceme
index b65737a..a9fadd2 100644
--- a/src/net/bounceme/dur/usenet/controller/ArticleNewsgroup.java
+++ b/src/net/bounceme/dur/usenet/controller/ArticleNewsgroup.java
@@ -5,8 +5,8 @@ import java.util.logging.Level;
 import java.util.logging.Logger;
 import javax.mail.Message;
 import javax.mail.MessagingException;
-import net.bounceme.dur.usenet.database.Article;
-import net.bounceme.dur.usenet.database.Headers;
+import net.bounceme.dur.usenet.model.Article;
+import net.bounceme.dur.usenet.model.Newsgroup;
 import net.bounceme.dur.usenet.model.Usenet;

thufir@dur:~/NetBeansProjects/USENET$ 
thufir@dur:~/NetBeansProjects/USENET$ git merge 4.GUI_loading_messages_slowly 
Auto-merging src/net/bounceme/dur/usenet/controller/Page.java
CONFLICT (content): Merge conflict in src/net/bounceme/dur/usenet/controller/Page.java
Auto-merging src/net/bounceme/dur/usenet/database/DatabaseUtils.java
CONFLICT (content): Merge conflict in src/net/bounceme/dur/usenet/database/DatabaseUtils.java
Auto-merging src/net/bounceme/dur/usenet/model/Usenet.java
CONFLICT (content): Merge conflict in src/net/bounceme/dur/usenet/model/Usenet.java
Automatic merge failed; fix conflicts and then commit the result.
thufir@dur:~/NetBeansProjects/USENET$ 
thufir@dur:~/NetBeansProjects/USENET$ 

It’s not so much that I want to “fix” the conflicts but simply replace master with the branch. Perhaps rebase?

  • 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-09T10:18:37+00:00Added an answer on June 9, 2026 at 10:18 am

    The merge worked as advertised, but only after deleting the master branch:

    thufir@dur:~/NetBeansProjects$ 
    thufir@dur:~/NetBeansProjects$ git clone git@github.com:THUFIR/usenet.git
    Cloning into usenet...
    remote: Counting objects: 3750, done.
    remote: Compressing objects: 100% (1263/1263), done.
    remote: Total 3750 (delta 1630), reused 3585 (delta 1465)
    Receiving objects: 100% (3750/3750), 385.93 KiB | 85 KiB/s, done.
    Resolving deltas: 100% (1630/1630), done.
    thufir@dur:~/NetBeansProjects$ 
    thufir@dur:~/NetBeansProjects$ cd usenet/
    thufir@dur:~/NetBeansProjects/usenet$ 
    thufir@dur:~/NetBeansProjects/usenet$ git branch -a
    * 4.GUI_loading_messages_slowly
      remotes/origin/1.FetchBean_CLI
      remotes/origin/2.some_GUI
      remotes/origin/3.messageId__string
      remotes/origin/4.GUI_loading_messages_slowly
      remotes/origin/HEAD -> origin/4.GUI_loading_messages_slowly
    thufir@dur:~/NetBeansProjects/usenet$ 
    thufir@dur:~/NetBeansProjects/usenet$ git branch master
    thufir@dur:~/NetBeansProjects/usenet$ 
    thufir@dur:~/NetBeansProjects/usenet$ git branch
    * 4.GUI_loading_messages_slowly
      master
    thufir@dur:~/NetBeansProjects/usenet$ 
    thufir@dur:~/NetBeansProjects/usenet$ git checkout master
    Switched to branch 'master'
    thufir@dur:~/NetBeansProjects/usenet$ 
    thufir@dur:~/NetBeansProjects/usenet$ git branch
      4.GUI_loading_messages_slowly
    * master
    thufir@dur:~/NetBeansProjects/usenet$ git branch -a
      4.GUI_loading_messages_slowly
    * master
      remotes/origin/1.FetchBean_CLI
      remotes/origin/2.some_GUI
      remotes/origin/3.messageId__string
      remotes/origin/4.GUI_loading_messages_slowly
      remotes/origin/HEAD -> origin/4.GUI_loading_messages_slowly
    thufir@dur:~/NetBeansProjects/usenet$ 
    thufir@dur:~/NetBeansProjects/usenet$ git merge 4.GUI_loading_messages_slowly 
    Already up-to-date.
    thufir@dur:~/NetBeansProjects/usenet$ 
    thufir@dur:~/NetBeansProjects/usenet$ git push origin master
    Total 0 (delta 0), reused 0 (delta 0)
    To git@github.com:THUFIR/usenet.git
     * [new branch]      master -> master
    thufir@dur:~/NetBeansProjects/usenet$ 
    

    The merge only worked because I first deleted the master branch, which seems a bit extreme, but there you are. Otherwise, I wasn’t sure how to fix the conflicts without, as the fine manual suggests, editing the files so that they match. I just don’t understand the point of a merge if you first have to manually edit things so that they match a different branch, it seems the there should be a prompt about that, not an error message.

    With the proviso that you cannot delete the master branch with push origin :master on github without first changing the default branch, easy peasy. I find it somewhat aggravating that merge won’t always merge automagically, and will sometimes barf back that there are conflicts. I don’t see why merge can’t return an advisory, and then ask “are you sure?” and then merge anyhow. In any event, I learned a (little) about git, in particular how to delete a branch.

    I don’t understand the meaning of Already up-to-date., I mean, the origin on github certainly isn’t up to date, so I wonder what’s up to date. Presumably the local copy is up to date now, but why is it “already” up to date?

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

Sidebar

Related Questions

I was trying to merge a dev branch into master. git checkout master git
I encounter this issue pretty consistently when trying to merge a branch back into
$ git branch master * portal $ git fetch $ git merge origin/portal Already
dave@dave-dev:/media/dev/belgravia$ git branch * (no branch) master I'm not sure how this happened, but
I have master branch https://github.com/Fivell/PHP_PROJECT/ and recently created new branch for php 5.3 https://github.com/Fivell/PHP_PROJECT/tree/php5.3
Suppose I have this feature branch foo. Now I want to merge it back
This question is related to my problem in understanding rebase, branch and merge ,
I want to merge this queries into only one, to return 2 values (scount_atp
I have this simple example I can't seems to get working : MERGE INTO
My local tree has diverged from the master: $ git status # On branch

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.