Download presentation
Presentation is loading. Please wait.
Published byRalf Keller Modified over 5 years ago
1
CS122B: Projects in Databases and Web Applications Spring 2018
Notes 3: Git Professor Chen Li UC Irvine
2
Version control Jorge Cham, PHD Comics, php?comicid=1531
3
Version control We can use Git to save each version and go back and forth between versions. Version 1 Version 2 Version 3 Document.txt Adapted from: Software Carpentry, "Version Control with Git",
4
History of version control
CVS Subversion Git …
5
Version control in Git Team members change code on their local machines and push the changes to the Github server. Other team members can pull the changes from the server and continue to work. Therefore, the entire version history of all the files are replicated among all the team members.
6
Version control in Git
7
Branches in Git Recommendations branch Top deals branch
master (all website’s code) Recommendations branch (for building recommendation feature) Top deals branch (for showing the top deals today)
8
Branches in Git Branches: used to separately develop a feature piece-wise and later merge the complete code into the master branch. The circles below represent commits (think of a commit as a snapshot of the files in the repository.)
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.