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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:51:29+00:00 2026-06-13T14:51:29+00:00

I am seriously thinking to use git as my deployment method. Currently I work

  • 0

I am seriously thinking to use git as my deployment method. Currently I work alone so conflicts is not a problem in my case. Lets say that I followed the steps to replicate a workflow that connects my localhost, my bitbucket account and my live server repository. I keep wondering how to insure that if anything breaks, I can safely get back to the stable version.

Only thing I can think is to create a branch for each future version and then checkout to it. If its not ok or I have problems I’ll checkout back to master. If its ok, I merge the branch with master after a few days and I’ll create a new branch.

Is this logical? I have searched many articles on the subject but I really can’t understand most of them, because they are for mid-large teams so the workflow is different. Also I have made the same question to some sites and never got an answer, most probably cause its a stupid one, I really don’t know. But here I am. How versioning will work in my case?

  • 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-13T14:51:30+00:00Added an answer on June 13, 2026 at 2:51 pm

    First I would assume you have no problems deploying any specific branch.

    In environments with some semblance of professionalism (and budget), there would be a staging environment where new code will be deployed before it gets to production (in your case, the live server repository). Generally the version on production should always be stable (hint: and in the case when it is not, you should have spotted it before it ended up on production, good testing practices will also be helpful here)

    Now, let’s suppose you ended up having to “hot-fix” master for production anyway and the regular revert happens to be insufficient, one way to do this is to:

    1. Reset –hard to the desired commit
    2. Reset (soft) to head of master (now your working copy will still be from the desired commit)
    3. Stage the current working copy (i.e. git add .) and commit it.

    PS: Note that I don’t do this often and I hope you don’t either, especially on master

    Another note of warning: this does not take care of database backups, you will need other contingency plans for those

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

Sidebar

Related Questions

I know what you're thinking - oh my god, seriously, not again - but
I've got a small problem (and it's probably seriously nothing). I have a small
So basically, I've run into this problem enough times that it is seriously frustrating
I can't understand this behaviour in my app and I'm seriously thinking burn my
Ok... serious problem. I did the update , thinking that I could continue to
I'm seriously stumped by this one. I'm learning to use simpletest to run my
I have a problem that I seriously spent months on now! Essentially I am
I'm currently working on a large BPM project at work which uses the Global
I have serious problem with Thinking Sphinx in my Rails application. My app specifications
Seriously, it seems like every time I want to make my UI elements talk

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.