Distributed Source Control
For Domino Designer
uxdesign.xpagesbeast.com
Distributed Source Control
•What is version control?
•Who is it for?
•How does it help?
Distributed Source Control
• LocalVersion Control Systems
• CentralizedVersion Control Systems
• DistributedVersion Contro...
Distributed Source Control
LocalVersion Control System
File Server
Detached Storage
On your computer in
Separate folders.
...
Distributed Source Control
Centralized Version Control System
Central Server contains all versioned files
• Single point o...
Distributed Source Control
Distributed Version Control System
Every developer contains all versioned files and history
• D...
Distributed Source Control
History of Git …
• Born in 2005 because commercial vendor for
bitKeeper revoked a free license ...
Distributed Source Control
History of Git - Requirements
• Fast
• Simple and easy to use
• Support for branching (thousand...
Distributed Source Control
Git Basics …
• Forget how otherVCS work
• Git stores its data as snapshots when you
commit.
• J...
Distributed Source Control
Git Basics …
• Committed
• Modified
• Staged
Git database (Repository)
Modify files
Checkout
S
...
Distributed Source Control
Git Basics – IBM Notes Designer
Git database (Repository)
Share Project – Commit changes
On dis...
Distributed Source Control
Domino Installation Steps
 Install Git onto yourWindows PC
 Install the eclipse eGit plugin i...
Distributed Source Control
Demo
Distributed Source Control
Demo Steps
Open Domino Designer
Create a new Notes Application ‘git-demo’
Create on disk repres...
Distributed Source Control
Demo Steps
Git add form frmDepartment
Commit
Git rm frmDepartment
Commit
Git log –p -2 show las...
Distributed Source Control
Demo Steps
Difference between author and committer, the author is the
person who originally wro...
Distributed Source Control
UndoingThings
Change your last commit message or add a file to it
Git commit –amend
Restore a v...
Distributed Source Control
Branching
Git starts with a default branch called master. Git stores a table
of pointers to eac...
Upcoming SlideShare
Loading in …5
×

Git for IBM Notes Designer

984 views

Published on

A presentation I did to bring a Notes developer not familiar with Git source control, some examples of navigating common tasks.

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
984
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Git for IBM Notes Designer

  1. 1. Distributed Source Control For Domino Designer uxdesign.xpagesbeast.com
  2. 2. Distributed Source Control •What is version control? •Who is it for? •How does it help?
  3. 3. Distributed Source Control • LocalVersion Control Systems • CentralizedVersion Control Systems • DistributedVersion Control Systems
  4. 4. Distributed Source Control LocalVersion Control System File Server Detached Storage On your computer in Separate folders. (Bad) Error Prone
  5. 5. Distributed Source Control Centralized Version Control System Central Server contains all versioned files • Single point of failure • Cannot work on files checked out by someone else
  6. 6. Distributed Source Control Distributed Version Control System Every developer contains all versioned files and history • Developers work offline • Anyone can restore the project from their local copy. Hosted Repository Github bitbucket  Git  Mercurial  Bazaar  Darcs
  7. 7. Distributed Source Control History of Git … • Born in 2005 because commercial vendor for bitKeeper revoked a free license from Linux Kernel development. • Sponsored by LinusTorvald • Linux Kernel development uses Git
  8. 8. Distributed Source Control History of Git - Requirements • Fast • Simple and easy to use • Support for branching (thousands of parallel branches) • Fully distributed • Ability to scale large projects
  9. 9. Distributed Source Control Git Basics … • Forget how otherVCS work • Git stores its data as snapshots when you commit. • Just about every operation is local • Everything in Git is checksummed SHA-1 hash • You cannot lose committed changes.
  10. 10. Distributed Source Control Git Basics … • Committed • Modified • Staged Git database (Repository) Modify files Checkout S t a g e Staging Area
  11. 11. Distributed Source Control Git Basics – IBM Notes Designer Git database (Repository) Share Project – Commit changes On disk representation C:Program Files (x86)IBMLotusNotesDataworkspace .NSF
  12. 12. Distributed Source Control Domino Installation Steps  Install Git onto yourWindows PC  Install the eclipse eGit plugin into Domino Designer.  Configure Git through the eGit plugin.  Create a on-disk representation of your NSF (extracting your NSF to the file system)  Share the on-disk representation (have Git manage the source, a repository will be created in yet another location.  For a detailed walk through visit uxdesign.xpagesbeast.com
  13. 13. Distributed Source Control Demo
  14. 14. Distributed Source Control Demo Steps Open Domino Designer Create a new Notes Application ‘git-demo’ Create on disk representation of the NSF Share on disk representation Check git shell $ git status, you have untracked directory Add to repository $ git add –all, $ git status $ git commit –am “First Commit” git Explain the –am switch, show $ git log
  15. 15. Distributed Source Control Demo Steps Git add form frmDepartment Commit Git rm frmDepartment Commit Git log –p -2 show last two commits Git log --stat to get number of lines added or removed. Git log –pretty=oneline Git log –pretty=format:”%h - %an, %ar :%s”
  16. 16. Distributed Source Control Demo Steps Difference between author and committer, the author is the person who originally wrote the work. The committer is the one who applied the work. Get a list of files that changed in every commit. Git log –pretty=format:”%h %s” –name-only Git log –pretty=format:”%h %s %an” –name-only Git log –since=2.hour git log --pretty="%h:%s" --since="2013-01-01" --before="2013-11-12" --no-merg
  17. 17. Distributed Source Control UndoingThings Change your last commit message or add a file to it Git commit –amend Restore a version Git checkout 876bf4b6c7a98dfea9c70b57c9e7cb2343fe7eb6
  18. 18. Distributed Source Control Branching Git starts with a default branch called master. Git stores a table of pointers to each branch which you currently have checked out. Git stores each set of changes into snapshots with the commit command. A special pointer HEAD keeps track of what branch your on. Git branch “somename” , git checkout “somename”

×