Git BasicsPresentation: 0.5hrWorkshop: 1hr                      © Terence ChiaRevision: 1.2                      1 Septemb...
Git Basics●   Introduction   ●   Git Migration●   Get Started    ●   Git Clients●   Start Coding   ●   Git Community●   Te...
Getting Started●   $git init       ●   Starts a new local git●                        repository●   $git clone            ...
Start Coding●   $git add         ●   Add modified files to●                         “stage”. This prepares                ...
What have I done?!●   $git status    ●   Reveals code status●   $git log       ●   Shows change log●   $git diff      ●   ...
Team Development●   Setup Identity●   Setup a shared repository●   Basic ways of avoiding conflicts●   Branching●   Merging
Team Development    ●   $git config                             ●   Setup user●       $ git config –global user.name “DevA...
Bye bye SVN, CVS           ● Git exceeds basic SCM features           ● CVS, SVN are history           ● Migration from SV...
Git Clients●   Linux, Windows, MacOS tools●   Command line●   Git Bash●   GitK●   Alot of Git dev integration tools out th...
Git Clients●   Linux, Windows, MacOS tools●   Command line●   Git Bash●   GitK●   Alot of Git dev integration tools out th...
Git Community●   Git is open sourced under GPLv2●   Public Repositories    – http://github.com    – http://bitbucket.org● ...
Git Resources●   http://git-scm.com●   http://wiki.glitchdata.com/index.php?title=Git●   http://gitready.com/●   Alot of r...
Thank You●   Lets Practice●   Exercises                                 © Terence Chia                                 1 S...
Upcoming SlideShare
Loading in...5
×

Git basics

216

Published on

Git

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

  • Be the first to like this

No Downloads
Views
Total Views
216
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Git basics

  1. 1. Git BasicsPresentation: 0.5hrWorkshop: 1hr © Terence ChiaRevision: 1.2 1 September 2010
  2. 2. Git Basics● Introduction ● Git Migration● Get Started ● Git Clients● Start Coding ● Git Community● Team ● Git Resources Development
  3. 3. Getting Started● $git init ● Starts a new local git● repository● $git clone ● Gets a copy of a remote repository●
  4. 4. Start Coding● $git add ● Add modified files to● “stage”. This prepares you to commit the files.● ● Commits file to● $git commit repository●
  5. 5. What have I done?!● $git status ● Reveals code status● $git log ● Shows change log● $git diff ● Shows diff of changed● files● $git show ● Shows diff by commits● $git help ● General Git help●●●
  6. 6. Team Development● Setup Identity● Setup a shared repository● Basic ways of avoiding conflicts● Branching● Merging
  7. 7. Team Development ● $git config ● Setup user● $ git config –global user.name “DevA” configuration & contact● $git config –global user.email “DevA@site.com” details ● $git pull ● Pull down changes ● $git push ● Push your updates ● $git stash ● Stash your changes. Restore to original state
  8. 8. Bye bye SVN, CVS ● Git exceeds basic SCM features ● CVS, SVN are history ● Migration from SVN to GIT is simple ● But prepare your SVN users & repository first ● $git svn● $ git svn clone http://svn/repo/here/trunk
  9. 9. Git Clients● Linux, Windows, MacOS tools● Command line● Git Bash● GitK● Alot of Git dev integration tools out there.
  10. 10. Git Clients● Linux, Windows, MacOS tools● Command line● Git Bash● GitK● Alot of Git dev integration tools out there.
  11. 11. Git Community● Git is open sourced under GPLv2● Public Repositories – http://github.com – http://bitbucket.org● DIY Public Repositories
  12. 12. Git Resources● http://git-scm.com● http://wiki.glitchdata.com/index.php?title=Git● http://gitready.com/● Alot of resources available
  13. 13. Thank You● Lets Practice● Exercises © Terence Chia 1 September 2010

×