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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:19:46+00:00 2026-06-10T19:19:46+00:00

Say, if a project using Git is all committed, with master and foo branch

  • 0

Say, if a project using Git is all committed, with master and foo branch both point to the same commit. If we are now on the master branch, and change some files, it seems that we can switch to the foo branch, or even create a new branch:

git checkout -b bar

and commit the changes to any of the 3 branches? So it is like, the changes remain “flexible” for the programming to commit to whichever branch chosen? (even commit to foo if there is one or several more commits already done in the foo branch, as long as the modified files didn’t overlap with any files in those commits).

  • 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-10T19:19:48+00:00Added an answer on June 10, 2026 at 7:19 pm

    Yes. You will be stopped from changing branches if there is a conflict. Otherwise, it Just Works.

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

Sidebar

Related Questions

Say I have a project in a git repository. The project has a branch
Our project has been using Git for a week or so now, and we're
In a web project using jsp, I have following requirement Upload a file (say
I am using Webview to implement browser capabilities in my project. Lets say someone
I am using git with capistrano. I initialized my project inside my folder on
I am using Git alone for my local software project in Visual Studio 2010.
I started a local git repository. Now, at this point, I want to publish
I've inherited a project and we are using git. We have a number of
I've been using Git on both Windows and Ubuntu during the development of a
Let's say I'm using git locally only, for web work in JavaScript. I've got

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.