2. What is Git and Github?
Git is an extremely fast, efficient, distributed
version control system used for collaborative
development of software. Git was designed and
developed by Linus Torvalds.
Github is a web based hosting service for
software development projects that use the Git
revision control system.
3. Working with Git locally
● Creating Projects
$ git init
● Adding Files to Staging Area
$ git add . (add all files
recursively)
$ git add * (add all files)
4. Working with Git locally
● Checking the status of the project
$ git status
5. Working with Git locally
● Committing changes
$ git commit -m 'first commit'
11. Working remotely with Git
● Getting the copy of repository
$git clone [url]
● Adding a remote repository
$ git remote add [alias] [url]
12. Working remotely with Git
● Updating from a remote repository
$ git pull
● Updating a remote repository
$git push [alias] [branch]
13. Best practices
● Always do small, logical commits
● Do keep up to date
● Always review code before committing it
● Do useful tools (eg. sourcetree)