How to Initiate git on server

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

9 Comments

  1. Yes! Finally someone writes about совершить.

  2. I really like looking through a post that will make men and women think.

    Also, thanks for allowing for me to comment!

  3. AyanaEDonahoe

    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.

  4. ArgeliaUClarey

    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.

  5. This paragraph provides clear idea in support of the new people
    of blogging, that genuinely how to do blogging.

  6. Benefits Of Coconut Oil

    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!

  7. Taruhan Bola Terpercaya di Indonesia

    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

Leave a Reply

Your email address will not be published.