Closed arvind-naidu closed 11 years ago
git clone git@github.com:k4rthik/git-cal.git
and move ./git-cal/git-cal to $PATH :smiley:
So, try this, I'll explain what the commands actually do, so you can debug it yourself, it's easier, and you learn something new :+1:
So, the curl
command will get you the the file over the internet, by doing >
you'll send the contents of the request from curl
into a new file, which in the second case, you're calling ~/bin/git-cal
, and then, with the chmod 0755
, you're giving it permission to run.
Now that we know this, try to locate the file:
cd ~/bin
ls
does the file appear? If it didn't, try curling it again, or wget, once you have the file, try to run it:
./git-cal
You should receive a git error once you try to run it from inside ~/bin, now try going out of that directory and executing it, if it didn't, you need to add ~/bin to your $PATH:
export $PATH+=":$HOME/bin"
try again, you should now be able to go to a git repo and use it :).
Hope this was helpful.
@LuRsT gave a great answer. :+1:
Awesome. Thanks for the help guys. :+1:
I'm using Ubuntu 12.04 and tried following your installation method where I stumbled upon an error at the second command:
First command:
Second command:
Is there something wrong? Or I missed out something?