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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:42:56+00:00 2026-05-18T19:42:56+00:00

New to git. A bit confused about how some of it works, conceptually. So

  • 0

New to git. A bit confused about how some of it works, conceptually.

So it sounds like, in terms of local work, its a good idea to have a branch that contains only what goes into production and another for testing out ideas, etc. which I can then merge. Is it as simple as creating those branches and then when I don’t want any recent changes to my project to be committed to the master branch, I just switch to the “testing” branch and commit/push from there? I’m just confused about the interaction between local project activity and git.

Say, for example, I add some code to my android project and save, those changes will have no effect on master repo unless I commit? And that’s the case even though, in terms of the actual local project, those changes were saved.

Am I thinking about this right? If not, set me straight?

  • 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-18T19:42:57+00:00Added an answer on May 18, 2026 at 7:42 pm

    Say, for example, I add some code to
    my android project and save, those
    changes will have no effect on master
    repo unless I commit? And that’s the
    case even though, in terms of the
    actual local project, those changes
    were saved.

    Actually they won’t change anything in the master repo until you push.
    It will change your local repo when you commit.

    It’s really up to you how you want to organize your branches (really depends on how many things you work at the same time), but you can always have those branches, commit to them and when you have something consistent, you can always create a new branch of things to merge, use cherry-pick and/or rebase -i to make it a clean serie of commits and merge/push that branch.

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

Sidebar

Related Questions

I a bit confused about how I could use git branches with rails. When
I'm new to Git and a bit confused. I have a Master branch and
I'm new to branching in git and I'm a bit confused by the behaviour
I'm still a bit new to git, and I use gitg to visualize trees.
I 'm relatively new to git and and having some problems early on. I've
I've been using git for some time now and understand how commits work, tags,
I am a bit new to git. I just moved over from SVN and
So, I'm fairly new to git and I've after a bit of reading around
I'm fairly new to Perforce but I already have experience with DVCS like Git
I'm getting a bit confused with Git! I cloned a repo on GitHub to

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.