1 / 13

Introduction to Git Using Windows & PowerShell

Introduction to Git Using Windows & PowerShell. Mark Embling http:// www.markembling.info http:// twitter.com/markembling. My blog. Me on Twitter. Overview - Git. Distributed version control system Originally created for the Linux kernel project Runs on Linux/Unix, OS X & Windows

ann
Download Presentation

Introduction to Git Using Windows & PowerShell

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to GitUsing Windows & PowerShell Mark Embling http://www.markembling.infohttp://twitter.com/markembling My blog Me on Twitter

  2. Overview - Git • Distributed version control system • Originally created for the Linux kernel project • Runs on Linux/Unix, OS X & Windows • Website: http://git-scm.com

  3. Overview - PowerShell • Command shell environment • …and scripting language • Built on top of .NET • .NET object pipeline, not strings • Many built-in command aliases to make you feel at home • dir, ls→ Get-ChildItem

  4. Why PowerShell? • Bash • Powerful, but somewhat out of place • Command.exe • Welcome to the past • PowerShell • Powerful • Customisable • Good for other tasks • (not single-purpose like ‘Git Bash’)

  5. Git Concepts • Distributed version control • There is no central server (unlike SVN, CVS etc) • …although there can be if you like • All history, branches & tags stored locally on your machine • Commits, diffs and merges are fast • You can push and pull changes in your local repository to remote copies • Excellent for collaboration (open source)

  6. Git Concepts • Proper branches & tags • Not just copies of the tree like Subversion • ‘trunk’ → ‘master’ • Branch per feature • Easy and cheap branching + fast merges • Trivial to create a branch, write a feature and merge back into master

  7. Demo

  8. Environment • MSysGithttp://code.google.com/p/mysysgit/ • Git • OpenSSH • GitGUI/GitK • PowerShell • and some scripts to enhance the experience • Console http://sourceforge.net/projects/console/ • DiffMergehttp://www.sourcegear.com/diffmerge/ • TortoiseGithttp://code.google.com/p/tortoisegit/

  9. PowerShell + Git • Add custom aliases • git status→ gs • Tweak the prompt • Scripts to add more • SSH Agent

  10. Demo

  11. Other Cool Git Stuff • GitHubhttp://github.com/ • “Social coding” • Lots of open source projects there - popular • Forking (create your own copy of a project’s repository) • “Pull requests” – easy way to notify upstream repos of your wish to pull in your changes • Gitorioushttp://gitorious.org/ • Like GitHub • But open-source, so you can download and run your own • Gitosis • Easy way to run a git server • Linux/Unix & Windows (Cygwin) • Configured through its own special git repository which it hosts How recursive 

  12. Try it out for yourself

  13. That’s About All Questions? Thanks for listening to my babbling Mark Embling http://www.markembling.infohttp://twitter.com/markembling More Git & PowerShell stuff on my blog

More Related