# How to make a repository config up-to-date

3 messages from 2007-04-19 to 2007-04-20. Participants: Olivier Galibert, Junio C Hamano.
Thread: https://gitlist.dev/t/7743

## Olivier Galibert, 2007-04-19 23:45

Subject: How to make a repository config up-to-date
Message-ID: <20070419234532.GA38838@dspnet.fr.eu.org>
URL: https://gitlist.dev/e/20070419234532.GA38838%40dspnet.fr.eu.org

```
I've got a number of a little over one year old repositories I do my
private stuff into.  Looks like in that year things changed quite a
bit (remote going from files to some kind of config file?  reflog
stuff?).  What should I do to change them to what would be considered
an up-to-date, full bells-and-whistles configuration?

  OG.

```

## Junio C Hamano, 2007-04-20 00:07

Subject: Re: How to make a repository config up-to-date
Message-ID: <7v7is76h8c.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v7is76h8c.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20070419234532.GA38838@dspnet.fr.eu.org>

```
Olivier Galibert <galibert@pobox.com> writes:

> I've got a number of a little over one year old repositories I do my
> private stuff into.  Looks like in that year things changed quite a
> bit (remote going from files to some kind of config file?  reflog
> stuff?).  What should I do to change them to what would be considered
> an up-to-date, full bells-and-whistles configuration?

A better question to ask before that is "do I need to change to
take advantage of any bells-and-whistles", I think.

* To enable reflog in your repository with working-tree, you do
  not have to do anything.  It's on by default.

* $GIT_DIR/remotes/origin is still consulted for a pull/fetch.
  If you do not do complicated multi-branch workflow, you do not
  gain much by moving that information to .git/config.

There is a contrib/remotes2config.sh script that copies
information from remotes/origin into .git/config if you are
interested.

```

## Olivier Galibert, 2007-04-20 12:34

Subject: Re: How to make a repository config up-to-date
Message-ID: <20070420123455.GA62110@dspnet.fr.eu.org>
URL: https://gitlist.dev/e/20070420123455.GA62110%40dspnet.fr.eu.org
In-Reply-To: <7v7is76h8c.fsf@assigned-by-dhcp.cox.net>

```
On Thu, Apr 19, 2007 at 05:07:31PM -0700, Junio C Hamano wrote:
> A better question to ask before that is "do I need to change to
> take advantage of any bells-and-whistles", I think.

Indeed.


> * To enable reflog in your repository with working-tree, you do
>   not have to do anything.  It's on by default.

Ah nice :-)


> * $GIT_DIR/remotes/origin is still consulted for a pull/fetch.
>   If you do not do complicated multi-branch workflow, you do not
>   gain much by moving that information to .git/config.
> 
> There is a contrib/remotes2config.sh script that copies
> information from remotes/origin into .git/config if you are
> interested.

Excellent, I'll check the result and decide whether it seems worth it.

  OG.

```
