- Create a Bare Repo on Server
ssh kunal@domain.com
mkdir website.git
cd website.git
git init --bare
- Create a Hook to copy files from the bare git directory to the nginx/apache website directory
ssh kunal@domain.com
mkdir website.git
cd website.git
git init --bare
| body, html { | |
| height: 100%; | |
| } | |
| body{ | |
| margin: 0; | |
| } | |
| .full-bg { | |
| width: 100%; | |
| height: 100%; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Avengers - Infinity War</title> | |
| <link rel="stylesheet" type="text/css" href="css/styles.css"> | |
| <link href="https://fonts.googleapis.com/css?family=Audiowide" rel="stylesheet"> | |
| </head> | |
| <body> | |
| <div class="full-bg"> |
| body, html { | |
| height: 100%; | |
| } | |
| body{ | |
| margin: 0; | |
| } | |
| .full-bg { | |
| width: 100%; | |
| height: 100%; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Avengers - Infinity War</title> | |
| <link rel="stylesheet" type="text/css" href="css/styles.css"> | |
| <link href="https://fonts.googleapis.com/css?family=Audiowide" rel="stylesheet"> | |
| </head> | |
| <body> | |
| <div class="full-bg"> |
| body, html { | |
| height: 100%; | |
| } | |
| body{ | |
| margin: 0; | |
| } | |
| .full-bg { | |
| width: 100%; | |
| height: 100%; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Avengers - Infinity War</title> | |
| <link rel="stylesheet" type="text/css" href="css/styles.css"> | |
| <link href="https://fonts.googleapis.com/css?family=Audiowide" rel="stylesheet"> | |
| </head> | |
| <body> | |
| <div class="full-bg"> |
| body, html { | |
| height: 100%; | |
| } | |
| body{ | |
| margin: 0; | |
| } | |
| .full-bg { | |
| width: 100%; | |
| height: 100%; |
| body, html { | |
| height: 100%; | |
| } | |
| body{ | |
| margin: 0; | |
| } | |
| .full-bg { | |
| width: 100%; | |
| height: 100%; |
| body, html { | |
| height: 100%; | |
| } | |
| body{ | |
| margin: 0; | |
| } | |
| .full-bg { | |
| width: 100%; | |
| height: 100%; |