Changes between Version 10 and Version 11 of Chimera2/git
- Timestamp:
- Apr 10, 2020, 12:16:41 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Chimera2/git
v10 v11 1 = Chimera 2Revision Control =1 = ChimeraX Revision Control = 2 2 3 3 [[PageOutline]] … … 33 33 {{{#!html 34 34 <pre style="margin-left:20px; margin-right:20px; border:solid 1px; padding:3px; background:white;"> 35 <b style="color:#c22;">franklin:~ conrad$ cd /usr/local/projects/chimera 2/git</b>36 <b style="color:#c22;">franklin:git conrad$ git clone chimera 2.git myrepo</b>37 Initialized empty Git repository in /usr/local/projects/chimera 2/git/myrepo/.git/35 <b style="color:#c22;">franklin:~ conrad$ cd /usr/local/projects/chimerax/git</b> 36 <b style="color:#c22;">franklin:git conrad$ git clone chimerax.git myrepo</b> 37 Initialized empty Git repository in /usr/local/projects/chimerax/git/myrepo/.git/ 38 38 <b style="color:#c22;">franklin:git conrad$ cd myrepo</b> 39 /usr/local/projects/chimera 2/git/myrepo39 /usr/local/projects/chimerax/git/myrepo 40 40 <b style="color:#c22;">franklin:myrepo conrad$ git flow init -d</b> 41 41 Using default branch names. … … 71 71 <pre style="margin-left:20px; margin-right:20px; border:solid 1px; padding:3px; background:white;"> 72 72 <b style="color:#2a2;">[loft - /e]$ git clone \ 73 ssh://conrad@plato.cgl.ucsf.edu/usr/local/projects/chimera 2/git/chimera2.git \74 chimera 2</b>75 Cloning into 'chimera 2'...73 ssh://conrad@plato.cgl.ucsf.edu/usr/local/projects/chimerax/git/chimerax.git \ 74 chimerax</b> 75 Cloning into 'chimerax'... 76 76 remote: Counting objects: 556, done. 77 77 remote: Compressing objects: 100% (533/533), done. … … 79 79 Receiving objects: 100% (556/556), 311.17 MiB | 621 KiB/s, done. 80 80 Resolving deltas: 100% (170/170), done. 81 <b style="color:#2a2;">[loft - /e]$ cd chimera 2</b>82 /e/chimera 283 <b style="color:#2a2;">[loft - /e/chimera 2]$ git flow init -d</b>81 <b style="color:#2a2;">[loft - /e]$ cd chimerax</b> 82 /e/chimerax 83 <b style="color:#2a2;">[loft - /e/chimerax]$ git flow init -d</b> 84 84 Using default branch names. 85 85 … … 95 95 Support branches? [support/] 96 96 Version tag prefix? [] 97 <b style="color:#2a2;">[loft - /e/chimera 2]$ ls -l</b>97 <b style="color:#2a2;">[loft - /e/chimerax]$ ls -l</b> 98 98 total 26 99 99 -rw-r--r--+ 1 conrad None 657 May 3 10:51 Makefile … … 126 126 <pre style="margin-left:20px; margin-right:20px; border:solid 1px; padding:3px; background:white;"> 127 127 <b style="color:#c22;">franklin:myrepo conrad$ pwd</b> 128 /usr/local/projects/chimera 2/git/myrepo128 /usr/local/projects/chimerax/git/myrepo 129 129 <b style="color:#c22;">franklin:myrepo conrad$ git status</b> 130 130 # On branch develop … … 167 167 @@ -0,0 +1 @@ 168 168 +hello world 169 <b style="color:#c22;">franklin:myrepo conrad$ echo "hello chimera 2" > example</b>169 <b style="color:#c22;">franklin:myrepo conrad$ echo "hello chimerax" > example</b> 170 170 <b style="color:#c22;">franklin:myrepo conrad$ git diff</b> 171 171 diff --git a/example b/example … … 175 175 @@ -1 +1 @@ 176 176 -hello world 177 +hello chimera 2177 +hello chimerax 178 178 <b style="color:#c22;">franklin:myrepo conrad$ git pull</b> 179 179 Already up-to-date. … … 189 189 Total 3 (delta 1), reused 0 (delta 0) 190 190 Unpacking objects: 100% (3/3), done. 191 To /usr/local/projects/chimera 2/git/chimera2.git191 To /usr/local/projects/chimerax/git/chimerax.git 192 192 1d973d7..a3108a9 develop -> develop 193 193 </pre> … … 206 206 <pre style="margin-left:20px; margin-right:20px; border:solid 1px; padding:3px; background:white;"> 207 207 <b style="color:#c22;">franklin:myrepo conrad$ pwd</b> 208 /usr/local/projects/chimera 2/git/myrepo208 /usr/local/projects/chimerax/git/myrepo 209 209 <b style="color:#c22;">franklin:myrepo conrad$ git status</b> 210 210 # On branch develop … … 222 222 223 223 <b style="color:#c22;">franklin:myrepo conrad$ cat example</b> 224 hello chimera 2224 hello chimerax 225 225 <b style="color:#c22;">franklin:myrepo conrad$ echo "completely different" > example</b> 226 226 <b style="color:#c22;">franklin:myrepo conrad$ git status</b> … … 270 270 Total 7 (delta 4), reused 0 (delta 0) 271 271 Unpacking objects: 100% (7/7), done. 272 To /usr/local/projects/chimera 2/git/chimera2.git272 To /usr/local/projects/chimerax/git/chimerax.git 273 273 a3108a9..fb5b90a develop -> develop 274 274 </pre> … … 287 287 {{{#!html 288 288 <pre style="margin-left:20px; margin-right:20px; border:solid 1px; padding:3px; background:white;"> 289 <b style="color:#2a2;">[loft - /e/chimera 2]$ pwd</b>290 /e/chimera 2291 <b style="color:#2a2;">[loft - /e/chimera 2]$ git status</b>289 <b style="color:#2a2;">[loft - /e/chimerax]$ pwd</b> 290 /e/chimerax 291 <b style="color:#2a2;">[loft - /e/chimerax]$ git status</b> 292 292 # On branch develop 293 293 # Changes not staged for commit: … … 298 298 # 299 299 no changes added to commit (use "git add" and/or "git commit -a") 300 <b style="color:#2a2;">[loft - /e/chimera 2]$ echo "some changes" > example</b>301 <b style="color:#2a2;">[loft - /e/chimera 2]$ git status</b>300 <b style="color:#2a2;">[loft - /e/chimerax]$ echo "some changes" > example</b> 301 <b style="color:#2a2;">[loft - /e/chimerax]$ git status</b> 302 302 # On branch develop 303 303 # Changes not staged for commit: … … 308 308 # 309 309 no changes added to commit (use "git add" and/or "git commit -a") 310 <b style="color:#2a2;">[loft - /e/chimera 2]$ git stash</b>310 <b style="color:#2a2;">[loft - /e/chimerax]$ git stash</b> 311 311 Saved working directory and index state WIP on develop: fb5b90a Merge branch 'feature/my_new_feature' into develop 312 312 HEAD is now at fb5b90a Merge branch 'feature/my_new_feature' into develop 313 <b style="color:#2a2;">[loft - /e/chimera 2]$ cat example</b>313 <b style="color:#2a2;">[loft - /e/chimerax]$ cat example</b> 314 314 finished product 315 315 <br/><i><b style="color:#d22;">Here, the developer can make and commit updates without including the earlier changes.</b></i><br/> 316 <b style="color:#2a2;">[loft - /e/chimera 2]$ git stash list</b>316 <b style="color:#2a2;">[loft - /e/chimerax]$ git stash list</b> 317 317 stash@{0}: WIP on develop: fb5b90a Merge branch 'feature/my_new_feature' into develop 318 <b style="color:#2a2;">[loft - /e/chimera 2]$ git stash pop</b>318 <b style="color:#2a2;">[loft - /e/chimerax]$ git stash pop</b> 319 319 # On branch develop 320 320 # Changes not staged for commit: … … 326 326 no changes added to commit (use "git add" and/or "git commit -a") 327 327 Dropped refs/stash@{0} (9c7ea9292cd81bd1f4d2606dbab129e3cdd5c0d9) 328 <b style="color:#2a2;">[loft - /e/chimera 2]$ cat example</b>328 <b style="color:#2a2;">[loft - /e/chimerax]$ cat example</b> 329 329 some changes 330 <b style="color:#2a2;">[loft - /e/chimera 2]$ git pull</b>330 <b style="color:#2a2;">[loft - /e/chimerax]$ git pull</b> 331 331 Already up-to-date. 332 332 </pre> … … 348 348 {{{#!html 349 349 <pre style="margin-left:20px; margin-right:20px; border:solid 1px; padding:3px; background:white;"> 350 <b style="color:#22c;">conrad@huck ~$ git clone ssh://conrad@plato.cgl.ucsf.edu/usr/local/projects/chimera 2/git/myrepo myrepo</b>350 <b style="color:#22c;">conrad@huck ~$ git clone ssh://conrad@plato.cgl.ucsf.edu/usr/local/projects/chimerax/git/myrepo myrepo</b> 351 351 Cloning into 'myrepo'... 352 352 remote: Counting objects: 569, done. … … 399 399 Writing objects: 100% (3/3), 283 bytes, done. 400 400 Total 3 (delta 1), reused 1 (delta 0) 401 To ssh://conrad@plato.cgl.ucsf.edu/usr/local/projects/chimera 2/git/myrepo401 To ssh://conrad@plato.cgl.ucsf.edu/usr/local/projects/chimerax/git/myrepo 402 402 * [new branch] feature/multi_site -> feature/multi_site 403 403 Already on 'feature/multi_site' … … 410 410 <i><b style="color:#2a2;">Subsequently, on another host...</b></i> 411 411 412 <b style="color:#2a2;">[loft - ~]$ git clone ssh://conrad@plato.cgl.ucsf.edu/usr/local/projects/chimera 2/git/myrepo myrepo</b>412 <b style="color:#2a2;">[loft - ~]$ git clone ssh://conrad@plato.cgl.ucsf.edu/usr/local/projects/chimerax/git/myrepo myrepo</b> 413 413 Cloning into 'myrepo'... 414 414 remote: Counting objects: 569, done. … … 454 454 Writing objects: 100% (3/3), 279 bytes, done. 455 455 Total 3 (delta 1), reused 0 (delta 0) 456 To ssh://conrad@plato.cgl.ucsf.edu/usr/local/projects/chimera 2/git/myrepo456 To ssh://conrad@plato.cgl.ucsf.edu/usr/local/projects/chimerax/git/myrepo 457 457 da70383..f9d8a3d feature/multi_site -> feature/multi_site 458 458 … … 464 464 remote: Total 3 (delta 1), reused 0 (delta 0) 465 465 Unpacking objects: 100% (3/3), done. 466 From ssh://plato.cgl.ucsf.edu/usr/local/projects/chimera 2/git/myrepo466 From ssh://plato.cgl.ucsf.edu/usr/local/projects/chimerax/git/myrepo 467 467 da70383..f9d8a3d feature/multi_site -> origin/feature/multi_site 468 468 Updating da70383..f9d8a3d … … 497 497 == Create Team Repository == 498 498 499 In this section, examples refer to ''/var/tmp/conrad/example'' since the actual path ''/usr/local/projects/chimera 2/git'' is already in use. Examples in other sections of this document refer to the correct path.500 501 Create the bare '''git''' repository that will serve as the team repository for Chimera 2source code. Note that the repository is created for sharing within a group. The '''chgrp''' command defines which group will have cloning and update privileges. The access permissions such as the setgid bit of directories (meaning files created will inherit the group of the parent directory) in the repository is maintained by '''git''' and should not require manual intervention.499 In this section, examples refer to ''/var/tmp/conrad/example'' since the actual path ''/usr/local/projects/chimerax/git'' is already in use. Examples in other sections of this document refer to the correct path. 500 501 Create the bare '''git''' repository that will serve as the team repository for ChimeraX source code. Note that the repository is created for sharing within a group. The '''chgrp''' command defines which group will have cloning and update privileges. The access permissions such as the setgid bit of directories (meaning files created will inherit the group of the parent directory) in the repository is maintained by '''git''' and should not require manual intervention. 502 502 503 503 {{{#!html 504 504 <pre style="margin-left:20px; margin-right:20px; border:solid 1px; padding:3px; background:white;"> 505 505 <b style="color:#c22;">franklin:example conrad$ cd /var/tmp/conrad/example</b> 506 <b style="color:#c22;">franklin:example conrad$ git init --bare --shared=group chimera 2.git</b>507 Initialized empty shared Git repository in /var/tmp/conrad/example/chimera 2.git/508 <b style="color:#c22;">franklin:example conrad$ chgrp -R chimdev chimera 2.git</b>506 <b style="color:#c22;">franklin:example conrad$ git init --bare --shared=group chimerax.git</b> 507 Initialized empty shared Git repository in /var/tmp/conrad/example/chimerax.git/ 508 <b style="color:#c22;">franklin:example conrad$ chgrp -R chimdev chimerax.git</b> 509 509 <b style="color:#c22;">franklin:example conrad$ ls -l</b> 510 510 total 4 511 drwxrwsr-x 7 conrad chimdev 3864 May 1 09:34 chimera 2.git/511 drwxrwsr-x 7 conrad chimdev 3864 May 1 09:34 chimerax.git/ 512 512 </pre> 513 513 }}} … … 517 517 {{{#!html 518 518 <pre style="margin-left:20px; margin-right:20px; border:solid 1px; padding:3px; background:white;"> 519 <b style="color:#c22;">franklin:example conrad$ git clone --shared chimera 2.git bootstrap</b>519 <b style="color:#c22;">franklin:example conrad$ git clone --shared chimerax.git bootstrap</b> 520 520 Initialized empty Git repository in /var/tmp/conrad/example/bootstrap/.git/ 521 521 warning: You appear to have cloned an empty repository. … … 530 530 }}} 531 531 532 Use '''git flow''' to set up the branches in the bootstrap repository. After initialization, we are on the '''develop''' branch where we add our initial files; '''xyzzy''' is our only file in this example. The '''add -A''' command adds all modified and untracked files to the staging area; the '''commit''' command commits files in the staging area to the local repository; the '''push''' command pushes the state of the current branch from the local repository, '''bootstrap''', to the remote team repository, '''origin''', which represents the repository from which we are cloned ('''chimera 2.git''' in this case).532 Use '''git flow''' to set up the branches in the bootstrap repository. After initialization, we are on the '''develop''' branch where we add our initial files; '''xyzzy''' is our only file in this example. The '''add -A''' command adds all modified and untracked files to the staging area; the '''commit''' command commits files in the staging area to the local repository; the '''push''' command pushes the state of the current branch from the local repository, '''bootstrap''', to the remote team repository, '''origin''', which represents the repository from which we are cloned ('''chimerax.git''' in this case). 533 533 534 534 {{{#!html … … 569 569 Total 5 (delta 0), reused 0 (delta 0) 570 570 Unpacking objects: 100% (5/5), done. 571 To /var/tmp/conrad/example/chimera 2.git571 To /var/tmp/conrad/example/chimerax.git 572 572 * [new branch] develop -> develop 573 573 </pre> … … 589 589 <b style="color:#c22;">franklin:bootstrap conrad$ git push origin master</b> 590 590 Total 0 (delta 0), reused 0 (delta 0) 591 To /var/tmp/conrad/example/chimera 2.git591 To /var/tmp/conrad/example/chimerax.git 592 592 * [new branch] master -> master 593 593 </pre> 594 594 }}} 595 595 596 At this point, the team repository set up is complete. All the files are under revision control and the bootstrap repository may be safely deleted. The team repository, '''chimera 2.git''', with '''master''' and '''develop''' branches, is ready for by developers. Note that developers still have to set up and use '''git flow''' after cloning in order to follow the [http://nvie.com/posts/a-successful-git-branching-model/ Vincent Driessen's branching model] conveniently.596 At this point, the team repository set up is complete. All the files are under revision control and the bootstrap repository may be safely deleted. The team repository, '''chimerax.git''', with '''master''' and '''develop''' branches, is ready for by developers. Note that developers still have to set up and use '''git flow''' after cloning in order to follow the [http://nvie.com/posts/a-successful-git-branching-model/ Vincent Driessen's branching model] conveniently. 597 597 598 598 {{{#!html … … 602 602 total 12 603 603 drwxr-xr-x 3 conrad ferrin 3864 May 1 11:19 bootstrap/ 604 drwxrwsr-x 7 conrad chimdev 3864 May 1 09:34 chimera 2.git/604 drwxrwsr-x 7 conrad chimdev 3864 May 1 09:34 chimerax.git/ 605 605 <b style="color:#c22;">franklin:example conrad$ rm -rf bootstrap</b> 606 606 </pre>
![[Chimera Issue Tracking System]](/trac/chimera/chrome/site/chimera_logo.png)