Friday 26 March 2010

Git Source Control System


Overview
  • A distributed version control system (DVCS) unlike SVN which is centralized
  • Local branches
  • push = commit
  • pull = check out
  • merge = merge
  • Git created by the creator of Linux, Linus Torvalds
  • Design goals; speed, simplicity, strong branch/merge support

Windows PowerShell Commands
  • git --version
    • this command shows the Git version installed e.g. 1.9.2.msysgit.0
  • git init
    • Creates an empty Git repository
  • get config --global --list
    • Lists all the configured users
  • git config --global user.name "William"
    • Creates a global username
  •  echo "Hello, Git" > ReadMe.txt
    • Creates a ReadMe.txt file
  • git add ReadMe.txt
    • Adds the ReadMe.txt into the Git Repository and make it trackable

No comments: