How to initiate git through ssh
Let us look step by step
step 1 : login into ssh
step 2 : create a folder using mkdir commend and change to that folder
step 3 : write below comment to initate as a master branch
git init –bare
step 4 : change window.pack to 0
git config pack.window 0
step 5 : clone to local machine using
git clone username@host.com:/home/folder name(if needed)
step 5 : make changes
create a read me file and commit
git add .
git commit -am “intial commit ”
step 6 : push server
git push origin master
(before that make sure you take a pull from server git pull origin master)
step 7 :
Auto update in server
cd ~/public_html/folder|| exit
unset GIT_DIR
git pull origin master
exec git-update-server-info
Enjoy Coding
10,034 total views, 1 views today
May 21, 2015 at 5:12 am
Yes! Finally someone writes about совершить.
May 21, 2015 at 11:46 am
I really like looking through a post that will make men and women think.
Also, thanks for allowing for me to comment!
July 5, 2015 at 11:47 pm
Hmm is anyone else having problems with the images on this blog loading?
I’m trying to determine if its a problem on my end or if it’s the blog.
Any responses would be greatly appreciated.
August 1, 2015 at 11:03 am
HI,
Please let me know the issue with images , I will check
July 8, 2015 at 7:37 pm
Hi I am so thrilled I found your blog, I really found you by
mistake, while I was browsing on Aol for something else, Nonetheless I am here now and would just like to say thanks for
a remarkable post and a all round enjoyable blog (I also love the
theme/design), I don’t have time to go through it all at
the moment but I have bookmarked it and also included your RSS feeds,
so when I have time I will be back to read a lot more,
Please do keep up the excellent work.
August 21, 2015 at 12:16 am
This paragraph provides clear idea in support of the new people
of blogging, that genuinely how to do blogging.
October 6, 2015 at 9:16 am
Do you mind if I quote a couple of your posts as long as I provide credit and sources
back to your weblog? My blog site is in the very same niche as yours and my visitors would definitely benefit from some of the information you provide here.
Please let me know if this alright with you. Many thanks!
November 25, 2015 at 6:46 pm
yaa sure
April 14, 2017 at 4:42 am
It’s awesome designed for me to have a website,
which is good in favor of my knowledge. thanks admin