SCM Examples: Subversion and Git

SCM Examples: Subversion and Git
Slide Note
Embed
Share

This content discusses examples of Software Engineering and Architecture focusing on Subversion and Git, exploring concepts like Distributed SCM, Git Staging Area, Multiple Repositories, and more. It provides insights into version control systems used in software development.

  • Software Engineering
  • Architecture
  • SCM
  • Subversion
  • Git

Uploaded on Feb 21, 2025 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Software Engineering and Architecture SCM Examples Subversion and Git

  2. The SCM Template CS@AU Henrik B rbak Christensen 2

  3. Subversion CS@AU Henrik B rbak Christensen 3

  4. Examples CS@AU Henrik B rbak Christensen 4

  5. Git CS@AU Henrik B rbak Christensen 5

  6. Git Dist. Repository Git is a Distributed SCM system Every workspace holds a complete copy of the repo* git commit makes a check-in/commit But to the local repository (gobbling up your disk space!) Thus we cannot collaborate? Yes we can because we can Push: Copy all changes from local repo to remote repo Pull: Copy all changes from remote repo to local repo *) Not quite true: complete copy of subset of branches CS@AU Henrik B rbak Christensen 6

  7. Multiple Repositories The common one is called origin Typically hosted at AU GitLab, BitBucket, GitHub, They can naturally form a chain Local Team Company Local Repo Exercise: Pros? Local Repo Local Repo Cons? CS@AU Henrik B rbak Christensen 7

  8. Git Staging Area One further complication A modified file in workspace is not considered modified until it is added to the Git staging area Thus the procedure is as this Arne modifies hans.txt Arne adds it to the staging area by git add hans.txt Arne commits to local repo: git commit m modified hans Arne pushes to remote repo: git push Subversion equivalent Arne modifies hans.txt Arne commits: svn commit m modified hans CS@AU Henrik B rbak Christensen 8

  9. Why? The staging area (aka index) adds one extra layer of complication to the use of git. Why? Fine-grained version control Scenario: In iteration 755 I Add feature x to my fabulous program which uses the doSuperStuff method that I spotted a bug in! Git Add just the files related to bug fix to index; commit bugfix Add rest of files to index; commit feature CS@AU Henrik B rbak Christensen 9

  10. Summary Why? To enable Release management and historical tracking Collaboration in the team How? CS@AU Henrik B rbak Christensen 10

More Related Content