how to fetch the website code in my local machine

Posted by vipin8169 on Ask Ubuntu See other posts from Ask Ubuntu or by vipin8169
Published on 2012-10-04T09:34:38Z Indexed on 2012/10/04 9:50 UTC
Read the original article Hit count: 290

Filed under:
|
|
|

i have a local GIT repository in my system by name 'git_repo' under which i had the whole codebase for a website(pre-configured by someone else), including all the jsps, js, css etc.

I used the following commands to create the local git repository out of the main repository:

git branch //to show the current branch
git checkout -b branch_local_name origin/Main_branch_name //to create local repository in current branch
git fetch //to fetch the current build

Accidently, i deleted all the contents of the local folder and i don't know what to do fetch the contents of that website again.

Please help !!!

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about repository