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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:58:58+00:00 2026-05-30T01:58:58+00:00

I have a question regarding Git. The place where I work has 2 developers:

  • 0

I have a question regarding Git. The place where I work has 2 developers: myself and another guy. We both developing a VB.NET project using Visual Studio 2008 and all the code and the company documents are all stored in a central local server.

So at the moment if both of us have to work on the same project we copy the code stored in Server1:/Code to our local documents folder and just tell each other what files we are using so we are not working on the same files. At the end of the day we copy our bits back to the server (making sure I don’t override his files and vice versa).

I have looked into Git and it seems that it will solve this “Don’t change the code of FileA because I am using it” type of problem and will enable us to work on the same project at the same time: i.e we both get a copy of the code from Server1 and develop and we merge both at the end of the day back to the server (or am I wrong?).

Now I have read parts of ProGit book and I get the bit where you add files and do commits but am not sure how both of us will be able to use it at once.

A few questions here:

  1. Where will I create the Git repository? The code is stored in Server1/Code and in Code we have various projects so I guess I have to create the repository in Server1/Code?
  2. After I create the repository, how do we both get a copy of, say project A stored in Server1/Code/ProjectA? Will we just copy paste the folder or use Git?
  3. Because each of us will have our own copy in My Documents and work on that copy throughout the day, how will we merge the files at the end so that nothing gets lost? Let’s say I have created a new Form in VS2008 with a button and some code behind it and the other guy has changed some code somewhere else? Or for example, I add some code to FormA and he adds some code to FormA too? How do we merge them at the end?

As I said I have installed git and git extensions on my pc at home and had a play with it and do not mind using either git bash (command line) or git GUI.

Any help will be greatly appreciated guys.

  • 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-30T01:58:59+00:00Added an answer on May 30, 2026 at 1:58 am

    Given the distributed nature of Git, there are literally hundreds of different workflows, so this is only one example.

    Another example of a popular workflow is described here

    Where will I create the GIT repository? The code is stored in
    Server1/Code and in Code we have various projects so I guess I have to
    create the repository in Server1/Code?

    You would create the repository on the Server1/Code:

    git init && 
    git add . && 
    git commit -am "Initial commit"
    

    The above adds everything to the repository (you maybe want to exclude some files, so put what you want to exclude from the repository in a .gitignore file in the root of the project first)

    After I create the repository, how do we both get a copy of, say
    project A stored in Server1/Code/ProjectA? Will we just copy paste the
    folder or use GIT?

    If you use a share you can clone with git file mode:

    git clone file:////<host>/<share>/<path>
    

    Because each of us will have our own copy in My Documents and work on
    that copy throughout the day, how will we merge the files at the end
    so that nothing gets lost? Let’s say I have created a new Form in
    VS2008 with a button and some code behind it and the other guy has
    changed some code somewhere else? Or for example, I add some code to
    FormA and he adds some code to FormA too? How do we merge them at the
    end?

    You typically work in a local branch:

    git checkout -b local_feature_branch
    

    When you are done, you can see what changed on the “server” using git fetch origin. This will only update your view of what happened on the server, it will not pull down the changes.

    When you are ready to push your changes up to the server:

    1) Commit changes

    git commit -am "My changes"
    

    2) Pull down changes on server to your local branch:

    git checkout master && git pull origin master
    

    3) Merge or rebase your feature branch to local copy of master

    Merge:

    git merge local_feature_branch
    

    Rebase:

    git checkout local_feature_branch && 
    git rebase master && 
    git checkout master && 
    git merge local_feature_branch
    

    Read up on the difference between merge and rebase in answer below:

    Git workflow and rebase vs merge questions

    If there is a conflict (for example if you both edit the same form etc.), git tells you that there was a merge conflict and what files to merge. After doing the merge you do add the merged file:

    git add merged_file
    

    And commit:

    git commit -am "Merged with master"
    

    Finally you push the changes back to the “server”:

    git push origin master
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have a question regarding something which has been bugging me for some time now.I'm
I have a question regarding the proper workflow of git in a PHP/MySQL workflow.
I have a question regarding a platform I'm developing called e-cidadania (GPL). One of
I have question regarding Java Comparator. Or maybe you all have another Idea to
I have a question regarding git-tfs integration and how it deals with labels. While
I have a question regarding some CSS that I'm sure has a simple solution,
I have question regarding the SQLAlchemy. How can I add into my mapped class
I have question regarding the use of function parameters. In the past I have
I have a question regarding the two additional columns (timeCreated, timeLastUpdated) for each record
I have a question regarding an update function I created... CREATE OR REPLACE FUNCTION

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.