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.

1 Answer 1

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:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.