Changes between Version 6 and Version 7 of setup-git
- Timestamp:
- Jul 23, 2014, 3:15:55 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
setup-git
v6 v7 1 1 == How to Setup Git on server == 2 2 3 === Create a Repo ===3 === Create a Repo on Server === 4 4 5 5 First thing to do is create a git repo with the command … … 11 11 }}} 12 12 13 === Create a .gitignore File===13 ==== Create a .gitignore File ==== 14 14 15 15 2. Using a text editor, create a .gitignore file … … 62 62 }}} 63 63 64 === Add Files to the Repo===64 ==== Add Files to the Repo ==== 65 65 66 66 3. Add files to the git repository with the command … … 77 77 }}} 78 78 79 === Initial Commit===79 ==== Initial Commit ==== 80 80 81 81 4. Do the initial commit with the command … … 86 86 }}} 87 87 88 === Make Bare Repo===88 ==== Make Bare Repo (Remote) ==== 89 89 90 90 5. Create a bare repository outside webroot … … 101 101 }}} 102 102 103 === Add Bare Repo as Remote===103 ==== Add Bare Repo as Remote ==== 104 104 105 105 6. Add a remote to our main git repo … … 112 112 }}} 113 113 114 === Push to Remote===114 ==== Push to Remote ==== 115 115 116 116 7. push our main repo to the remote with the command … … 194 194 }}} 195 195 196 === Add Remote to Local===196 ==== Add Remote to Local ==== 197 197 198 198 A. add a remote to the local repository with the command … … 205 205 NOTE: Change {{{commnet}}} to the correct user, {{{rose.mayfirst.org}}} to the correct server and {{{cn.glocal.coop}}} to the correct domain 206 206 207 === Pull in Code to Local from Remote===207 ==== Pull in Code to Local from Remote ==== 208 208 209 209 B. Pull in the remote repo with the command