Reputation: 1394
I'm very new to Git and having trouble setting a basic alias.
When I set the alias in .gitconfig file
[alias]
tech="cd c:/wamp/www/technology/"
and then try to call git tech
I get the following error
Expansion of alias 'tech' failed; 'cd' is not a git command
Thanks for any insights.
Upvotes: 0
Views: 633
Reputation: 13354
This sounds like more of a shell alias rather than a git alias.
You'd want to set this up in your ~/.bashrc
(or similar, depending on your shell). But, in bash, it would be:
alias tech="cd c:/wamp/www/technology"
Upvotes: 3