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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:34:38+00:00 2026-06-08T12:34:38+00:00

I would like some feedback on my git workflow because this is my first

  • 0

I would like some feedback on my git workflow because this is my first use of it and despite reading various articles and Stack Overflow questions, I’m not sure that my process is correct. This is my current workflow (note that I am using the Github for Windows application for all of my git interactions):

  1. Decide what the next feature is that I’m going to implement.
  2. Create a branch with a suitably descriptive name for the feature. I do this by clicking on the branch button in Github for Windows and typing a new name.
  3. Write some code.
  4. Commit those changes to my new branch.
  5. Write some more code.
  6. Commit those changes to my new branch.
  7. I’ve finished implementing the feature so I want to merge my changes back to the master branch. So I click on the ‘manage’ button underneath the branch heading.
  8. Merge the new branch into the master branch.
  9. Delete the new branch.

I am quite happy with the process up until step 7 at which point I am a little confused. I think my confusion lies in the fact that I’m trying to use the Github for Windows application rather than using the command line. The application does seem to make things easier but there is a bit of a disconnect in my understanding between some of the commands/instructions I see mentioned and the actions you would take in the application.

Let me ask some specific questions:

  1. Is my workflow actually correct? If not, what is wrong with it and how can I improve it?
  2. Should I be “publishing” my changes to the new branch? My understanding is that this is the equivalent of doing git push at the command line. Is that true? If so I think I would only want to do that when I am either finished implementing the feature or it is in a decent state?
  3. Should I be deleting the branch when I have merged it into the master branch or should it be left around forever?
  4. Do I need to publish the master branch when I have completed the merge or is this implicit?
  5. I am sometimes unable to perform the merge and get this error message:

    Unable to merge

    Failed to merge ‘test’ into ‘master’. You might need to open a shell and debug the state of this repo.

When this occurred before, I was able to change to the master branch and merge the new branch into the master branch however that no longer works. No matter which branch I am in, I cannot merge the two branches. Both are in sync and I’ve published all the changes from my test branch. What should I be typing in the shell to find out why I can’t merge the branches?

For reference, these are the main links that have prompted my process:

  1. Scott Chacon on the workflow at Gitub
  2. Git workflow for a single developer on a local repository
  3. Git workflow for a single user
  • 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-08T12:34:41+00:00Added an answer on June 8, 2026 at 12:34 pm

    What you are describing sounds like a common branching workflow that works very well even for multiple developers on the same code base. It’s pretty much completely covered by git flow which is a extension of git command line to automate certain steps. It’s worth checking out.

    I’m not a big fan of UI tools for git. I’m using the command line most of the time. So I’m not experienced with GitHub for Windows. But I bet your problems occur because of your merges are no fast-forwards anymore. This would require a manual merge step that is (afaik) not covered by the tool.

    There is no strong reason to keep branches around after merging them into your upstream. But one is to track what commits went into a certain feature. I would suggest to publish the branches if you decide to keep them. You are not dependent on the code lying around on you local machine. To keep the branches doesn’t make your repository much bigger by the way but pollutes the sight. Most of the time the commits are present anyway in your upstream branch.

    You will have to publish (push) your master branch after merging in.

    To get familiar with the git command line tool I suggest starting with the Introduction to Git and GitHub from the GitHub guys and follow their link references for more details.

    Hope that helps

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

Sidebar

Related Questions

I would like some feedback on my first Python script that makes use of
I would like to get some feedback on what is one of my first
I would like to get some feedback on this idea, as I can see
See solution below, I would like some constructive feedback. what is the running time
I would like to describe some specifics of my program and get feedback on
I would like some advice on the best approach to use in the following
I would like some feedback I think the title speaks already for itself, but
I've been thinking about this quite a bit lately, and I would like some
I have the following implementation and would like some feedback as to whether it
I'm trying to dig into jQuery but would like some feedback on how 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.