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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:36:21+00:00 2026-06-17T19:36:21+00:00

My master branch is messed. I should have setup branches before now, but I’ve

  • 0

My master branch is messed. I should have setup branches before now, but I’ve just realized why I need them!

So, I’ve got a pile of changes in master that I don’t want to commit yet, but I’ve got some hotfix stuff in a new branch that I want to commit.

How can I put all that stuff in master aside and push a tiny hotfix from a branch?

Basically, I’m not ready to push any of the stuff in the screenshot live yet:

Overview of Git Main Branch

  • 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-17T19:36:23+00:00Added an answer on June 17, 2026 at 7:36 pm

    git stash

    DESCRIPTION
           Use git stash when you want to record the current state of the working
           directory and the index, but want to go back to a clean working
           directory. The command saves your local modifications away and reverts
           the working directory to match the HEAD commit.
    

    You can also then

    git stash list
    

    will show all the stashes you’ve made, and

    git stash clear
    

    if you’d like to just abandon the stashed changes.

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

Sidebar

Related Questions

I have a 'master' branch and several topic branches. Assume that the master branch
Somehow my master and my origin/master branch have diverged. I actually don't want them
I have a repo setup, and am just learning about how branches work. Right
We have currently just master branch. Our current workflow involves implementing the features locally,
I have a master branch which merges to feature branches. It's been several times
I was working on master branch, made some changes and then stashed them. Now,
I have just a master branch in my git repo. I commited a change
I have made several commits in the master branch and then merged them to
Given I have a master branch and a other branch. In the other branch
I have a master branch, and another_branch with twice as many files in it.

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.