Changes between Version 5 and Version 6 of setup-git


Ignore:
Timestamp:
Jul 22, 2014, 11:14:10 PM (6 years ago)
Author:
Pea
Comment:

Added some headings for clarity.

Legend:

Unmodified
Added
Removed
Modified
  • setup-git

    v5 v6  
    11== How to Setup Git on server ==
    22
     3=== Create a Repo ===
     4
    35First thing to do is create a git repo with the command
    46
     
    810git init
    911}}}
     12
     13=== Create a .gitignore File ===
    1014
    11152. Using a text editor, create a .gitignore file
     
    5862}}}
    5963
     64=== Add Files to the Repo ===
    6065
    61663. Add files to the git repository with the command
     
    7277}}}
    7378
     79=== Initial Commit ===
     80
    74814. Do the initial commit with the command
    7582
     
    7986}}}
    8087
     88=== Make Bare Repo ===
    8189
    82905. Create a bare repository outside webroot
     
    93101}}}
    94102
     103=== Add Bare Repo as Remote ===
    95104
    961056. Add a remote to our main git repo
     
    103112}}}
    104113
     114=== Push to Remote ===
    105115
    1061167. push our main repo to the remote with the command
     
    111121}}}
    112122
     123=== Set up Hooks (Optional) ===
    113124
    1141258. Add needed hooks for handling live and remote changes.
     
    175186}}}
    176187
     188=== Create Repo in Local Environment ===
    177189
    1781909. From local web root initialize a git repo with the command
     
    182194}}}
    183195
     196=== Add Remote to Local ===
    184197
    185198A. add a remote to the local repository with the command
     
    192205NOTE: Change {{{commnet}}} to the correct user, {{{rose.mayfirst.org}}} to the correct server and {{{cn.glocal.coop}}} to the correct domain
    193206
     207=== Pull in Code to Local from Remote ===
    194208
    195209B. Pull in the remote repo with the command