سؤال

Wanna to update git configurations on server like aliases

$ git config --local alias.myalias myvalue
$ git push

after that cloning project and can't find the myalias key

$ git config --local alias.myalias

gave me nothing (nothing in .git/config file). How can I push my .git/config to server?

هل كانت مفيدة؟

المحلول

The config ( at .git/config) is local to your repo and cannot be pushed. Only thing you can do probably is to checkin a file like .gitconfig in the repo and setup a symlink to the .git/config in other repos that you use.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top