Skip to contentSkip to conversation

How to make a repository config up-to-date

DISCUSSION Olivier Galibert 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 5 lines · Olivier Galibert

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.

#2 lore raw
Quoted 2 lines · Junio C Hamano

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

Indeed.

Quoted 2 lines

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

Ah nice :-)

Quoted 7 lines

* $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.