All of lore.kernel.org
 help / color / mirror / Atom feed
From: "J.V." <jvsrvcs@gmail.com>
To: git@vger.kernel.org
Subject: How to pull force just one folder in dev tree?
Date: Tue, 05 Jun 2012 11:41:40 -0600	[thread overview]
Message-ID: <4FCE44D4.6050805@gmail.com> (raw)

If I am in my source code tree down deep in a directory at the command 
line, how do I pull from a repo and force overwrite all files locally 
(and also get files that I deleted locally, just in the folder I am in?)

I do not want to do this for the entire repo, just the directory that I 
am in and also on the branch I am in.  I am not in the 'master' branch, 
but another branch.

so

  $git reset --hard HEAD

  Would probably do my entire local repo and from 'master' (even if I am 
not on master)?

---
I want to git force pull from the branch I am on locally (tracked to a 
branch on a remote bare repo) and force overwrite of all files locally & 
also get the files I may have deleted locally from the file system (not 
files deleted through git).

How do I practice this to see what would happen (or revert) your 
solution if there are problems?

             reply	other threads:[~2012-06-05 17:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-05 17:41 J.V. [this message]
2012-06-05 18:35 ` How to pull force just one folder in dev tree? Junio C Hamano
2012-06-11 20:18   ` Philip Oakley

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=4FCE44D4.6050805@gmail.com \
    --to=jvsrvcs@gmail.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.