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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:23:14+00:00 2026-06-11T10:23:14+00:00

I am trying to figure out what is the best workflow to use Git

  • 0

I am trying to figure out what is the best workflow to use Git to synchronize a code base used by several developers concurrently. I have a script that was provided for me by my team leader, which adds pretty much all the code files I need to sync, leaving out batch files, compiled files, etc.

In general, what I believe I should do is sync before I start working on a problem, then sync when I am done testing. However, I am afraid this will implicate a long lapse between when I pulled the repo’s code and when I publish mine. This means, for example, that I might use some functions which have been either broken or fixed without my knowledge or that I might break some code inadvertently during that lapse, which someone else was using. Also, I think publishing “unfinished” code might be a bad practice, but I’m not sure.

How can I manage my syncs so that I interfere as little as possible with others’ code, and avoid a long turnaround time? Any recommendations are welcome.

  • 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-11T10:23:15+00:00Added an answer on June 11, 2026 at 10:23 am

    My strategy (there are many others) in this case would be:

    1.) Create two branches for yourself, in your own repository. One with working code ready for release (YOUR release branch) and one for development/bugfixes (YOUR devel branch).

    2.) In general: Your devel branch gets the latest code from source plus from your release branch. That way if there are any changes to the source, you can fetch that and are up to date. Also if there are changes from your development side, you can fetch that. (For example, you were ready to publish but just realized the source API got changed.). You’ll end up with a devel branch which has your (stable) changes plus the source changes, plus (unstable) fixes you can work on.

    3.) Once your ready with development, merge your fix branch into your release branch and provide your release branch code for review/integration to the lead. In case something changed meanwhile and it really needs to be fixed you’d go back to step 2.).

    The idea is to have a release handy at all times but continually flow changes and fixes into it, keeping it stable and up to date while at the same time having a unstable development branch with latest code from all sources.

    (project)           src-branch ----*----*---*-----*----------*------M
                                        \              \               /
    (personal) devel/bugfix-branch ------M-*-*--*-------M-M---*--*----/--
                                                 \       /         \ /
    (personal)      release-branch ---------------M-*---*----*--*---M----
    
                                   ------ time ----->
    

    Legend: * commit, M merge

    In the last step you’d actually provide either a git-diff patch or let the lead fetch your contribution from your release branch (of your BARE repository) for review/integration into the project source.

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

Sidebar

Related Questions

Trying to figure out the best way to use Nuget in a development environment
Trying to figure out the best way to accomplish this. I have inhereted a
I'm trying to figure out the best way of doing the following: I have
So I'm trying to figure out best practices on my database connection. I have
Trying to figure out the best way to have a templated brochure that creates
Stuck trying to figure out the best algorithm here. I have this simple function
I am trying to figure out the best way to have a text field
Trying to figure out the best way to set up collection lists for users
Trying to figure out the best way to do this: Should I do something
I'm trying to figure out the best way to do this, but I'm getting

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.