I would like to know how to download a file in terminal may be by using wget or curl.
EDIT: I have referred some of the thread they have given version number. But I would like to download without worrying about the version number.
I would like to know how to download a file in terminal may be by using wget or curl.
EDIT: I have referred some of the thread they have given version number. But I would like to download without worrying about the version number.
Well, generally you cannot checkout single files at a certain revision without using the version control system.
If you are using some kind of web-frontend to your repository (like kallithea or hgweb) you might be able to retrieve the desired info via curl or wget
See the accepted answer in Get a single file from a remote mercurial repository (thanks Guenther!) for possible solutions, IF you have such web interface on the server.
If necessary, update the remote repo to the version you are interested in. Then just fetch any files you want from the filesystem copy. E.g., if your repo path is ssh://example.com/projects/repo
, you could do this:
scp user@example.com:projects/repo/main.c .