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
  • 89,394
  • 88
  • 305
  • 468
CBR
  • 19
  • 2

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,129,465
  • 480
  • 4,036
  • 4,755