Changes between Version 5 and Version 6 of setup-git
- Timestamp:
- Jul 23, 2014, 3:14:10 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
setup-git
v5 v6 1 1 == How to Setup Git on server == 2 2 3 === Create a Repo === 4 3 5 First thing to do is create a git repo with the command 4 6 … … 8 10 git init 9 11 }}} 12 13 === Create a .gitignore File === 10 14 11 15 2. Using a text editor, create a .gitignore file … … 58 62 }}} 59 63 64 === Add Files to the Repo === 60 65 61 66 3. Add files to the git repository with the command … … 72 77 }}} 73 78 79 === Initial Commit === 80 74 81 4. Do the initial commit with the command 75 82 … … 79 86 }}} 80 87 88 === Make Bare Repo === 81 89 82 90 5. Create a bare repository outside webroot … … 93 101 }}} 94 102 103 === Add Bare Repo as Remote === 95 104 96 105 6. Add a remote to our main git repo … … 103 112 }}} 104 113 114 === Push to Remote === 105 115 106 116 7. push our main repo to the remote with the command … … 111 121 }}} 112 122 123 === Set up Hooks (Optional) === 113 124 114 125 8. Add needed hooks for handling live and remote changes. … … 175 186 }}} 176 187 188 === Create Repo in Local Environment === 177 189 178 190 9. From local web root initialize a git repo with the command … … 182 194 }}} 183 195 196 === Add Remote to Local === 184 197 185 198 A. add a remote to the local repository with the command … … 192 205 NOTE: Change {{{commnet}}} to the correct user, {{{rose.mayfirst.org}}} to the correct server and {{{cn.glocal.coop}}} to the correct domain 193 206 207 === Pull in Code to Local from Remote === 194 208 195 209 B. Pull in the remote repo with the command