All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Anjib Mulepati <anjibcs@hotmail.com>
Cc: git@vger.kernel.org
Subject: Re: Push from specific directory.
Date: Thu, 22 Mar 2012 18:57:47 -0400	[thread overview]
Message-ID: <20120322225747.GB14874@sigill.intra.peff.net> (raw)
In-Reply-To: <BLU0-SMTP471329E4F80CD64A569A4F7B1410@phx.gbl>

On Thu, Mar 22, 2012 at 06:04:20PM -0400, Anjib Mulepati wrote:

> 1. Is it always necessary to be in root directory to do the push?

No. You are pushing whole commits, not a particular subset of your
working tree. So doing it from anywhere in the repository should have
the same effect.

But...

> 2. Can I have a folder structure like
>         (a) /Hello-World
>         (b) /Hello-World/gitVersion/GitVersionFile.txt and
>         (c) /Hello-World/nonGitVersion/NonGitVersionFile.txt
> where I give git init for (a) and (c). If Itry to push only from (c)
> is that valid?

You have a repository inside a repository. So when you are in (c), you
will be pushing the commits from (c), not from (a). I'm not really sure
what you are trying to accomplish with that.

-Peff

  reply	other threads:[~2012-03-22 22:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-22 22:04 Push from specific directory Anjib Mulepati
2012-03-22 22:57 ` Jeff King [this message]
2012-03-22 23:22   ` Neal Kreitzinger
2012-03-22 23:27     ` Jeff King
2012-03-22 23:56       ` Neal Kreitzinger
2012-03-22 23:53     ` Junio C Hamano
2012-03-23  0:09       ` Neal Kreitzinger
2012-03-23  1:29   ` Neal Kreitzinger
     [not found]     ` <BLU0-SMTP315865C5026D08E76594E5DB1460@phx.gbl>
2012-03-23 15:30       ` Neal Kreitzinger
2012-03-26 14:27         ` Holger Hellmuth
2012-03-26 14:41           ` Neal Kreitzinger

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20120322225747.GB14874@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=anjibcs@hotmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.