mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Johannes Schneider <>
Subject: Making a (quick) commit to another branch
Date: Sat, 27 Apr 2013 16:06:37 +0200	[thread overview]
Message-ID: <> (raw)

Hash: SHA1

Hi guys,

I love git. And I use it every day. But there is one minor thing, that
bugs me a little bit:
I am implementing something on a feature branch. Now I detect a minor
typo/bug/whatever that just needs a one line commit.

But of course I don't want to add that commit to my feature branch.
Instead I'd like to commit that fix directly to another branch (e.g.

Unfortunately that take a lot of steps to make this happen:
- - comitting
- - stashing other changes
- - changing branch
- - cherry-picking commit
- - switching branches back
- - reverting latest commit
- - unstashing changes

I'd love to solve this by having an option for git commit that gives
me the possibility to commit to another branch:

git commit thefixedfile.txt -m "fixed a typo" -b master

Any ideas/hints?



- -- 
Johannes Schneider -
Version: GnuPG v1.4.11 (GNU/Linux)


             reply	other threads:[~2013-04-27 14:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-27 14:06 Johannes Schneider [this message]
2013-04-27 14:21 ` Making a (quick) commit to another branch Javier Domingo
2013-04-27 14:56   ` Patrik Gornicz
2013-04-27 21:06   ` Johannes Schneider

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).