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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:28:01+00:00 2026-05-27T12:28:01+00:00

I am new to Git. I have a public repo on GitHub and me

  • 0

I am new to Git. I have a public repo on GitHub and me & my friend need to work on the project simultaneously. We are using Netbeans 7.1 which has built in Git features. I can clone from and submit to GitHub but for example consider we have the following structure:

  • A.java
  • B.java
  • C.java

    1. If User #1 changes A.java and User #2 changes B.java, how do we merge them?
    2. If User #1 and User #2 both changes C.java, what happens?

There is remote/Fetch & Remote/Pull and I cannot understand the difference. We will work on the school project as 4 people and we want to also learn version controlling.

  • 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-27T12:28:01+00:00Added an answer on May 27, 2026 at 12:28 pm

    git fetch fetches changes from the remote git repo but doesn’t change you’re local branches tracking the remote changes. Git pull is a git fetch followed by a git merge on your local copy.

    Generally I do

    git fetch
    git status 
    git merge
    

    Merges will be done just like any other SCM. If conflicts arise you’ll be given a chance to edit/fix them and then you’d have to push the changes to the remote repo for others to see. Users could also edit the same file and the changes won’t result in a conflict and will just merge.

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

Sidebar

Related Questions

I am new to git and github. Suppose I have a public github repository,
I'm trying to move an existing project into a new git repo So far
I have forked an SVN project using Git because I needed to add features
I have a GitHub project which does the same thing (a simple RogueLike game
I have a new project starting up, and I was planning to use git
I am new to Git and I seem to have one branch too many
I have a ton of new files to commit. Clicking each one in git
I am new to open source and git. I have been learning git and
I'm new to Git. Let's say Alice and Bob had been developing their project
If I have a public Git repository that contains 3 branches like the following:

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.