2

I can't find a way to push the alias.* settings in .git/config on to my remote repo. Is there away to do this.

I don't want to make a global alias because some of the alias is specific for each repo and then we have to maintain all the alias manual on each machine.

Michael Durrant
  • 93,410
  • 97
  • 333
  • 497
CBR
  • 19
  • 3

1 Answers1

3

You cannot: a config is never exported (for security reason)

You can version your .git/config as a regular file (by copying in your working tree and adding it to the index, and committing it).
But you need to add a README asking the user to review its content, and symlink that to your local .git/config.

You could find a more detailed process (to version a config file) in:

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250