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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:35:02+00:00 2026-05-26T16:35:02+00:00

I a bit confused about how I could use git branches with rails. When

  • 0

I a bit confused about how I could use git branches with rails.
When I start a new rails app I begin with models. I create a new branch

git checkout -b modeling

Then say I want to make a Post model, I do

git checkout -b modeling-post

When I finish with Post, I do git merge with modeling and then I do

git checkout -b modeling-comment

for the Comment model and so on.

Is this the right way? Could I do it better?

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

    There is no such thing as a Right Way. As one would say, TIMTOWTDI: There Is More Than One Way To Do It. Your branching model on git should be what makes sense to your way of working on your code, and what enables you to be comfortable in doing so.

    It’s generally a good thing to have a main “release” branch that’ll take in all “tested and approved” code, and fork off it when you start on a new feature. Exactly when to branch or merge is up to yo and/or your team’s workflow and habits.

    I personally always branch by functionality/feature, so I have my project in a given state, and people ask I add feature X, then I git branch feature-X. Once it’s done coding, I would merge it in my integ branch to have it tested with the latest stuff my colleagues would have been working on at the same time. If it passes all tests, then it’ll end up merged in master and going for build and deployment. But then again, it depend on your working habits.

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

Sidebar

Related Questions

I am a bit confused about socket programming in C. You create a socket,
I'm a bit confused about the use of all the IEnumerable<T> extension methods, intellisense
I am a little bit confused about 2 things. Firstly when I create an
I'm learning the use of boost smart pointers but I'm a bit confused about
I'm new to image manipulation in .net and a little bit confused about the
I'm a bit confused about multitasking. I have a timer app which I am
I am bit confused about ADO.Net Data Services. Is it just meant for creating
I'm a bit confused about how many controllers I need, and when I can
I'm a bit confused about inheritance under sqlalchemy, to the point where I'm not
I'm a bit confused about how to overload the stream operators for my class

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.