13. How
• Repository
where files are being stored
• Local Repository
repository in the local machine
• Remote Repository
are versions of your project that are hosted over the Internet or
network somewhere
Feb. 23, 2013
28. Record Changes
• Tracked Files
Files that are currently in the
repository
Feb. 23, 2013
29. Record Changes
• Tracked Files
Files that are currently in the
repository
- unmodified, modified, staged
Feb. 23, 2013
30. Record Changes
• Tracked Files
Files that are currently in the
repository
- unmodified, modified, staged
• Untracked Files
Feb. 23, 2013
31. Record Changes
• Tracked Files
Files that are currently in the
repository
- unmodified, modified, staged
• Untracked Files
Everything else
Feb. 23, 2013
39. Ignoring Files
• Blank lines or lines starting with # are ignored.
Feb. 23, 2013
40. Ignoring Files
• Blank lines or lines starting with # are ignored.
• Standard glob patterns work.
Feb. 23, 2013
41. Ignoring Files
• Blank lines or lines starting with # are ignored.
• Standard glob patterns work.
• You can end patterns with a forward slash
(/) to specify a directory.
Feb. 23, 2013
42. Ignoring Files
• Blank lines or lines starting with # are ignored.
• Standard glob patterns work.
• You can end patterns with a forward slash
(/) to specify a directory.
•You can negate a pattern by starting it with
an exclamation point (!).
Feb. 23, 2013
45. Staged and Unstaged Changes
git diff
shows diff of what is modified but unstaged
Feb. 23, 2013
46. Staged and Unstaged Changes
git diff
shows diff of what is modified but unstaged
git diff --staged
Feb. 23, 2013
47. Staged and Unstaged Changes
git diff
shows diff of what is modified but unstaged
git diff --staged
shows the changes that will currently go into the next commit.
Feb. 23, 2013
60. Sharing / Updating Files
Remote Repositories
are versions of your project that are hosted over the
Internet or network somewhere.
Feb. 23, 2013
61. Sharing / Updating Files
Remote Repositories
are versions of your project that are hosted over the
Internet or network somewhere.
• Show remote repository
Feb. 23, 2013
62. Sharing / Updating Files
Remote Repositories
are versions of your project that are hosted over the
Internet or network somewhere.
• Show remote repository
• Add remote repository
Feb. 23, 2013
63. Sharing / Updating Files
Remote Repositories
are versions of your project that are hosted over the
Internet or network somewhere.
• Show remote repository
• Add remote repository
• Update/Sync remote repository
Feb. 23, 2013
64. Sharing / Updating Files
Remote Repositories
are versions of your project that are hosted over the
Internet or network somewhere.
• Show remote repository
• Add remote repository
• Update/Sync remote repository
• Inspect remote repository
Feb. 23, 2013