**Workshop Details** Dates: Sept. 11th - 21st, 2023 Time: 8:30am - 12:30pm **Workshop Agenda:** https://ucsdlib.github.io/2023-06-26-UCSD/ ## Day 2 Instructors: Kim Thomas (UCSD) Saulo Soares (UCSD) ## Day 2: Session Topic **Topic/Lesson Link** [Version Control with Git](https://swcarpentry.github.io/git-novice/index.html) **Software Installation and Lesson Data Downloads** Refer to [Software/Data Downloads: The Carpentries workshops](https://hackmd.io/afqJPGvRSKGDyskEV9sQEA?edit#) ## Workshop Day 2 ## Sign-in ### First Last Name/Email: 1. (example) Jane Doe / jdoe01@ucsd.edu 2. Glen Spiteri / glenwspiteri@g.ucla.edu 3. Tyler Gustafson / tyler_gustafson@berkeley.edu 4. Aafrin Pettiwala/ aafrin.pettiwala@ucsf.edu 5. Brooklyn Asai / basai@ucsd.edu 6. Marie Kennedy / marie.kennedy@lmu.edu 7. Jazer Sibley-Schwartz / jazer@ucsb.edu 8. Levi Berge-Wells / lbergewells@ucsd.edu 9. Ameesha Khan / ameesha_khan@berkeley.edu 10. Benjamin Lam / b6lam@ucsd.edu 11. Stephanie Ma/ sama@ucsb.edu 12. Maksim Zingman / mzingman@ucsd.edu 13. Wesley Cheng / wesleycheng@health.ucsd.edu 14. Jasper Romero / jwromero@ucsc.edu 15. Elise Lelou / elise.lelou@ucsf.edu 16. Sophia Toubian / toubian@ucla.edu 17. Caitlin Hunter/ hunter@law.ucla.edu 18. Hailie Kittner/ hkittner@ucsb.edu 19. Marissa Todesco/ mtodesco@ucsd.edu 20. Hope Reuschel/ hreuschel@ucmerced.edu 21. Rafael Coelho / rvcoelho@berkeley.edu 22. Arianna Mordy / ariannamordy@ucla.edu 23. ViviAnne Steer/ viviannesteer@berkeley.edu 25. Jonathan Morrow / jonmorrow@ucla.edu 26. Tamara Pilko / tpilko@ucsc.edu 27. Mike Nguyen / mikey@college.ucla.edu 28. Nicholas Lam / n2lam@ucsd.edu 29. Yiyang Zhang / yiz217@ucsd.edu 30. Phoebe Valdes / prvaldes@ucsd.edu 31. Nikola Marinos Raitsevits/ nmarinosraitsevits@ucsd.edu 32. Sudha Lingam / sudharani.lingam@ucsf.edu 33. Julia Dominesey / jdominesey@ucsd.edu 34. Melissa Hua / mhua27@g.ucla.edu 35. Dhruthick Gowda Mohan / dgmohan@ucsd.edu 36. Joshua Love / jlove@ucsb.edu 37. Emily Lam / eml048@ucsd.edu 38. Ethel Tackie-Yarboi/ ethel.tackieyarboi@ucsf.edu 39. Danielle Williamson / danielle.williamson@ucsf.edu 40. Seng Chea / schea@college.ucla.edu 41. Andrew Martin / amartin462@ucmerced.edu 42. Roxanne Corbeil / roxannecorbeil@g.ucla.edu 43. Annie Ding / winterknight17@ucla.edu 44. Bridgette Degnan / bdegnan@ucsb.edu 45. Andreina Soto / andreina@ucsb.edu 46. Alyssa Davis / alyssadavis3@g.ucla.edu 47. Alice Abate / Alice.Abate@ucsf.edu 48. alexis roberto / aroberto@g.ucla.edu 49. Nicole Avalon / navalon@ucsd.edu 50. Kao Kang Kue Vang / kaokangkue.vang@ucsf.edu 51. Caitlin Nordheim / caitlinnordheim@ucsb.edu 52. Nivedita Biswas / nivedita.biswas@ucsf.edu 53. Devyansh Agrawal / dagrawal@ucsd.edu 54. Laura Cheradame / laura.cheradame@ucsf.edu 55. Aliza Adler / aliza.adler@ucsf.edu 56. Hsiu-yu Yang / hsiuyu@ucla.edu 57. Naoko Ohgama / ohgama@berkeley.edu 58. Azad Namazie / ynamazie@g.ucla.edu 59. Diana Corona-Mata / dcoronamata@health.ucsd.edu 60. Kian Bagheri/ kibagheri@ucsd.edu 61. Sarah Harper/ sarah.ko.harper@gmail.com 62. Kyla Murphy/ kylamurphy@ucsb.edu 63. Jennifer Bailey / jlbailey@ucsd.edu 64. Eileen Keegan / ekeegan@library.ucla.edu 65. Zhibin Cui / zhibin.cui@ucsf.edu 66. Cheuk Tam / cheuk.tam@ucsf.edu 67. Cody Ashe-McNalley / codyam@ucla.edu 68. Shimelis Abebe Tegegn / shte0001@stud.slu.se 69. Sule Sahin / Sule.Sahin@ucsf.edu 70. Dylan Henson / dhenson@ts.ucla.edu 71. Dong Le / dvl006@ucsd.edu 72. Carlos Diaz / carlostaddiaz@library.ucla.edu 73. David Kamper/ davidgkamper@ucla.edu 74. Trivikram Choudhury / tchoudhury@ucsd.edu 75. Corinna DesCombaz / Corinna.DesCombaz@ucsf.edu 76. Scott Gruber/ sgruber@ioes.ucla.edu 77. Raymond U / ru@college.ucla.edu 78. Daniella Hanson / dahanson@ucdavis.edu 79. Neil Greenleaves / neilgreenleaves@ucsb.edu 80. Abby Teitgen / ateitgen@ucsd.edu 81. John Hirning / jhirning@college.ucla.edu 82. Scott Peterson / speterso@berkeley.edu 83. Mary Ringwood / mringwood@ucsb.edu 84. Zack Moreau / zmoreau@ucsd.edu 85. Elise Chen / jiaying.chen@ucsf.edu 86. Michael Ng / mng362@g.ucla.edu 87. Leo S / lameds@gmail.com ## Day 2 Questions: Please enter any questions not answered during live session here: 1. If we made a mistake entering out Git username, how do we undo it? I have the correct one working, but the "messed up" one still shows up when I do config --list. 2. How does "Git Commit -m" command "knows" to add the comment to the mars.txt file specifically. what if there are more files in the directory? Is it because we use "git add mars.txt" command right prior placing it on the staging area? ## Day 2 Notes: Recap: Commands used today: git init #initialize repository git status #current status - use this command after every git command git add #adds files to be tracked, red color file names need to be added git commit -m "shot message here" #commits changes for tracked files (green color). -m is required for adding a short message git log #Shows commit information, commit identifier info git diff #check the version changes git checkout #used to select previous version commits - commit history Remote git/github: git push #pushes changes TO github from local machine git pull #pulls changes FROM github to local machine .gitignore file #text file that tells git which file extensions to ignore from versioning touch # creates blank raw text file, specifying an extension is necessary. mkdir # creates empty files Recommend refering to this workflow cheatsheet, https://github.com/hbons/git-cheat-sheet ### End of Day 2 OneDrive path: $ cd ~/OneDrive/Desktop $ cd C:/Users/Username/OneDrive/Desktop