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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:03:04+00:00 2026-05-27T16:03:04+00:00

We are checking out git and would like to understand which workflow might suit

  • 0

We are checking out git and would like to understand which workflow might suit our small team (4 developers).

Some details about what we do:

  • We are working on a .NET product that is currently composed of 1
    repository with around 4-5 solutions, total of around ~ 70 projects
    and growing.
  • We currently have 1 central repository with 1 branch.
  • Each developer works on different code base areas, although
    occasionally will collaborate/modify other team member’s code area.

What is a “typical” git workflow for a team such as ours?

I would like to spend as minimal time as needed on “administrative” operations as possible.

For example, today we have seen that a git push request by a developer fails since another push was made before, and he had to merge changes locally using git pull first.

Is a typical scenario going like this:

Developer, commit locally.
Pull from git repository.
Push into git repository.

Can we not skip the pull? (have the merge done on the remote server?)

Currentlly we are using ClearCase, and this is resolved by merging during the push (“commit”) operation without the need to pull first.

  • 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-27T16:03:04+00:00Added an answer on May 27, 2026 at 4:03 pm

    First, I would recommend at least two branches. We call ours master and integration. Master is the current stable production-ready code base. This is what’s either in the customer’s hand or about to be submitted to the App Store (we’re an iOS shop). Integration is where we store our test-ready code. If someone asks for a test build, this is what we give them. Code here compiles and runs, but isn’t perfect. Depending on your deployment and testing process you can have as many additional branches as you need. Branches in git are easy and fast, there’s no reason to not have as many as you need.

    Here’s how our process works:

    1. Developer uses git pull to get the latest version of integration on their machine.
    2. Create a topic branch off of integration. ‘git checkout -b fix-home-page` will create a new branch named “fix-home-page”.
    3. Fix fix fix, code code code make a new commit every 5 minutes because commits in git are easy and fast. Once you’re done with your feature / bug fix:
    4. Switch back to the integration branch and use git pull to make sure you’ve got the latest commit.
    5. git merge --squash fix-home-page will pull in your branch in one nice clean commit and keep your history linear.
    6. git push to shove your fixes back up to the main repo.

    I like git merge --squash because it greatly reduces the number of conflicts. Other people like to use rebase, which will also give you a linear history and preserve all the commits from your topic branch. Use whatever suits you.

    Finally, to answer your question: Yes, you have to do a git pull before pushing. Git is great about resolving conflicts, but if it can’t resolve the conflict then you need human intervention to figure out what should be happening.

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

Sidebar

Related Questions

I was just checking out git-svn and thought I would give it a try
After checking out a branch in a repository git always prints a list of
I'm checking out some PHP 5.3.0 features and ran across some code on the
I have been checking out some of the possible timers lately, and System.Threading.Timer and
I was checking out this question which has this code - (NSArray *) percentagesRGBArray:(float[])
I am new to git and I would like to know how to tackle
I would like to checkout a single file from a remote git-repository. Is there
Is it possible to commit a file in a git branch without checking out
Earlier on, I committed some code which at the time seemed like a good
I'd really like to get our host to pull from our Git repository instead

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.