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.
Code:
rm -rf ~/www/imagehostnow.com
Be careful with rm -rf as it delete directory with warning and no recycle bin. You may use File Manager and go to folder
Code:
/home/YOUR_USER_NAME/www/
and delete or rename folder "imagehostnow.com".
Now we are ready to clone the web site, run following commands in terminal.
Code:
cd ~/www
git clone ssh://[email protected]:10022/buyscripts/imagehost.git imagehostnow.com
You get something like
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.
#
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.
Now visit web site, you will see the web site.
Bookmarks