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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:15:07+00:00 2026-06-05T09:15:07+00:00

I am using Git in netbeans and I wanted to commit my changes, however

  • 0

I am using Git in netbeans and I wanted to commit my changes, however first I did a pull, and now there are conflicts.

On the left, I have a .java class that is in red because of conflicts, and I’ve right clicked it and selected Resolve Conflicts, and went through those steps.

But it still won’t let me commit. I would like to override the current HEAD revision with my code, however it won’t let me commit. How do I do this?

And when I select the file and choose to see Git -> Diff, it only lets me replace or delete the code in my working copy with the code from the HEAD, rather than replace the code in the HEAD.

Basically, I want to commit my code, not revert, etc. How do I do this in netbeans? It keeps telling me I cannot commit because of conflicts.

  • 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-05T09:15:09+00:00Added an answer on June 5, 2026 at 9:15 am

    I just solved my issue, hope it helps.

    • 1) Updated to Netbeans 7.1.2 IDE, restarted new IDE.
    • 2) Open Git Repository Browser (used a (no branch) local branch) and switch to the branch with the issues both under the Team menu (it will be marked as a no-branch by default, check for the long “Md5 sum” to be the same).
    • 3) Pull other needed code from other branches (in case its needed, I had to in my case).
    • 4) Now edit/paste the code you want to overwritte. (This will turn the filename to red font).
    • 5) Simply right click the file, Git>Resolve Conflicts (and it will do its magic and turn the filename to blue font).
    • 6) Commit your local branch and finish.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can pull changes using git pull , but it merges my local commits.
I'm using GIT for my projects. Now I want to integrate it with github,
I have been using git to push my local code to a server. I
I have been using git flow for a couple of months and it has
I am using git-svn with the following workflow now git clone <SVN TRUNK URL>
I'm using git svn to merge changes from my local git repository to an
I'm using git-svn to use git locally and deploy a client's svn repo. However,
I'm using git-svn and there are IDE project files in the svn repository. Everytime
I'm using git for my workflow and I have a remote testing server. What
I have a project using Git where I've branched off of master to rename

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.