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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:38:57+00:00 2026-05-13T17:38:57+00:00

I read SO nearly everyday and mostly there is a thread about source control.

  • 0

I read SO nearly everyday and mostly there is a thread about source control. I have a few questions. I am going to use SVN as example.

1) There is a team (small, large dosnt matter). In the morning everyone checks out the code to start working. At noon Person A commits, while person B still works on it. What happens when person B commits? how will person B know that there is an updated file?

2) I am assuming the answer to the first question is “run an update command which tells you”, ok so person B finds out that the file they have been working on all morning in changed. When they see the udpated file, it seems like person A has REWRITTEN the file for better performance. What does person B do? Seems like there whole day was a waste of time. Or if they commit their version then its a waste of person A’s time?

3) What are branches?

thanks, and if anyone knows a laymen terms pdf or something that explains it that would be awesome.

  • 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-13T17:38:57+00:00Added an answer on May 13, 2026 at 5:38 pm

    1) Assuming there is a central repository (which is the case of SVN and CVS, but not necessarily Git, Bazaar, Mercurial, etc.), and person A commits (and then push the commit, which just transfers the diffs and commit messages to the central repository), person B should update it’s copy manually.

    2) In this case, yes, someone will have their time gone to waste. SCM systems (Source Control Management) can’t do anything to cure a team from it’s organizational problems. This is of course an extreme case. Most of the time, there will be only minor differences (the definition of minor here is that any specific file should not be completely or partially rewritten) on each commit, and if those modifications don’t touch the section person B is working on, the SCM software will be able to combine those commits into one working file.

    Another case here is when two people change the same area of the same file (say, a function). When such conflict happens, the SCM sofware will help you choose which changes you’ll use, or even let you use both or neither.

    3) A branch is a commit history line:

    feature->    /R-S-T
    master->  A-B-C-D-E-F
    bugfix->       \J-K-L-M
    

    Here, feature, master and bugfix are branches, and letters are specific commits. For branch master, the newest commit (the most recent version of each file) is F. On the other way, branch feature‘s newest commit is T and it includes only commits A and B from branch master. Any changes made in commits C, D, E and F aren’t included in that specific branch. It can be rewritten as:

    feature-> A-B-R-S-T
    master->  A-B-C-D-E-F
    bugfix->  A-B-C-J-K-L-M
    

    Now, branches are important to divide the workflow into different compartments, and focus the work on specific parts. Imagine branch master is where the stable code is located, and imagine we’re implementing a new feature on branch feature, which is not yet ready for release. Now imagine that the plugin system is changed, and important bugfixes are commited to the master branch, and, because the feature I’m implementing relies on the plugin system, I need to transfer those commits (C through F) to branch feature. To do that you issue a rebase (I’m using Git as guide here) command to you SCM software, so that:

    feature->            /R-S-T
    master->  A-B-C-D-E-F
    bugfix->       \J-K-L-M
    

    So now you’ve finished all work on branch feature. To transfer commits R, S and T to master, you issue a merge command:

    master->  A-B-C-D-E-F-R-S-T
    bugfix->       \J-K-L-M
    

    That’s the branch basics. There are lots of other cool things you can do to branches. Hope that is not too long and helps 😛

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

Sidebar

Ask A Question

Stats

  • Questions 383k
  • Answers 383k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If the process you create produces some textual output to… May 14, 2026 at 10:46 pm
  • Editorial Team
    Editorial Team added an answer This thread discusses various solutions for dynamically adding content to… May 14, 2026 at 10:46 pm
  • Editorial Team
    Editorial Team added an answer Here is a nice paper on the subject. May 14, 2026 at 10:46 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.