Thread (17 messages) flat view 17 messages, 9 authors, 2016-06-15

Re: Git: "No you can't handle my root!" (?)

From: Jeff King <hidden>
Date: 2016-06-15 22:47:32

On Tue, Oct 13, 2009 at 06:17:13AM +0200, Daniele Segato wrote:
quoted
This seems to work:

  $ cd ~
  $ git init
  $ echo '*' >.gitignore
  $ echo '!.*' >.gitignore
quoted
Or better: provide a list of directory under $HOME I want to track 
Same thing, but make your ! pattern more specific.
thanks again!
You're welcome, though while reading the quoted text I noticed a typo in
my instructions. The second echo should obviously be _appending_ to
.gitignore:

  $ echo '!.*' >>.gitignore

Hopefully that was obvious, but I thought I would point it out for the
record.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help