Getting Source Code from Git
Once you have Setup Local Web Site, you need to clone git repo.
Finding Git Repo URL
You can find Git Repo url at top of Gitlab.
Cloning Git Repo (Downloading Source Code to your Computer)
First you need to delete the folder we created in previous post.
Be careful with rm -rf as it delete directory with warning and no recycle bin. You may use File Manager and go to folderCode:rm -rf ~/www/imagehostnow.com
and delete or rename folder "imagehostnow.com".Code:/home/YOUR_USER_NAME/www/
Now we are ready to clone the web site, run following commands in terminal.
You get something likeCode:cd ~/www git clone ssh://[email protected]:10022/buyscripts/imagehost.git imagehostnow.com
In git clone command, we used web site name as last param. Git clone will create a folder with that name and clone git repo into that folder.Code:# git clone ssh://[email protected]:10022/buyscripts/imagehost.git imagehostnow.com Initialized empty Git repository in /home/boby/www/imagehostnow.com/.git/ remote: Counting objects: 194, done. remote: Compressing objects: 100% (167/167), done. remote: Total 194 (delta 57), reused 0 (delta 0) Receiving objects: 100% (194/194), 311.04 KiB, done. Resolving deltas: 100% (57/57), done. #
Now visit web site, you will see the web site.



Reply With Quote



Bookmarks