Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know this has been covered everywhere, but I still don't get it.

I apt-get install git-core.

I'm trying to install websocketcpp here https://github.com/zaphoyd/websocketpp.

I wget https://github.com/zaphoyd/websocketpp.git.

I have no idea what to do next. Please help.

(I've read http://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-practical-guide and http://www.thegeekstuff.com/2011/08/git-install-configure/, but I'm obviously missing something)

share|improve this question
    
I'm perhaps misreading you, but you do not install a .git file. .git is a directory that git uses to track files etc. You typically have the project files and at root level of the project a .git directory where the changes etc are tracked – for the files one tell git to track. When you clone a project you typically get all files that are tracked and also the .git directory where all history etc. are present. After clone try e.g. gitk --all & at root level. Good read: Pro Git book e.g. git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository – Runium Mar 5 '13 at 2:47
    
@Sukminder Thank you for the extra information! What's gitk --all & for exactly? I downloaded with jordanm's example and installed from instructions in link. Does gitk keep packages current? – user31705 Mar 5 '13 at 2:54
    
gitk is a graphical fronted for git as a repository browser. (One of many). As starting out it can help to get a view of git and the works. It does not do anything per se. man gitk. If it did not come with install of git then depending on system, but typically apt-get install gitk. – Runium Mar 5 '13 at 2:59
    
@Sukminder oh, cool. but I have to confess I'm on a 750mb/1.5ghz vps lol. i think i'm stuck with the command line. thanks anyways! i'm sure later readers will very much appreciate! – user31705 Mar 5 '13 at 3:04
up vote 7 down vote accepted

What you actually want to do is clone the repository. Here is an example:

git clone https://github.com/zaphoyd/websocketpp.git
share|improve this answer
    
absolutely perfect! installation was a breeze after that! – user31705 Mar 5 '13 at 2:55
    
What command should be used to install a cloned repository? – Tarek Mar 31 at 11:51
1  
@Tarek What do you mean by install? Install the application it contains? That will vary greatly by what the code is. – jordanm Mar 31 at 14:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.