Difference between revisions of "Git"

From Script | Spoken-Tutorial
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
  
 
The Spoken Tutorial Effort for '''Git''' is being contributed by Priya K from Spoken Tutorial Project, IIT Bombay.  
 
The Spoken Tutorial Effort for '''Git''' is being contributed by Priya K from Spoken Tutorial Project, IIT Bombay.  
 +
 +
'''Learners''': UG/PG CSE/IT/CS students, working professionals.
  
 
__TOC__
 
__TOC__
Line 99: Line 101:
 
* Creating a branch in GitHub repository
 
* Creating a branch in GitHub repository
 
* Creating a tag in the repository
 
* Creating a tag in the repository
 +
 +
10. '''Working with Remote Repositories'''
 +
 +
* Explaining what is a remote repository
 +
* Synchronizing data to a remote repository

Latest revision as of 10:06, 22 November 2019

Git was developed by Linus Torvalds in 2005. Git is a distributed version control software. It is a widely used source code management system for software development. It is free and open source software(FOSS). It is useful for Programmers, Web developers, Project managers, Writers and many others. Anyone working with text files, sheets, design files, drawings, etc., can use Git to track versions.

Git manages the changes in documents, computer programs and web sites etc. It provides a historical record of what you have done over time. It allows developers to work collaboratively. In Git, conflicts can be easily resolved using the suggestions given by Git itself. If there is loss of data, it can be restored from any of the client repositories.

The Spoken Tutorial Effort for Git is being contributed by Priya K from Spoken Tutorial Project, IIT Bombay.

Learners: UG/PG CSE/IT/CS students, working professionals.


Basic Level

1. Overview and Installation of Git

  • Explain about Version Control System
  • Explain about Git
  • Explain about the salient features of Git
  • Explain who can use Git
  • Complete installation of Git

2. Basic commands of Git

  • Explain the Git repository
  • Explain about .git folder
  • Explain how to configure Git with user name and email id
  • Explain about staging area
  • Explain about SHA-1 hash
  • Initialize a Git repository using git init command
  • Add files into Git repository using git add command
  • Check the Git status using git status commit
  • Explain how to save/commit changes using git commit command
  • Show how to see the Git logs using git log command

3. The git checkout command

  • Explain how to add multiple files into Git repository
  • Demonstrate how to remove a file from Git repository
  • Explain how to restore the removed file
  • Discard the latest changes made to a file or set of files
  • Show how to display all the Git logs in a single line
  • Explain how to go to previous revisions
  • Explain how to revert to latest revision

4. Inspection and Comparison of Git

  • Explain how to compare two commits
  • Explain how to compare the latest changes with an earlier commit
  • Use of git diff command
  • Use of git show command
  • Use of git blame command
  • Explain how to access help manuals

5. Tagging in Git

  • Explain about tagging
  • Types of tagging
  • Explain how to use lightweight tag
  • Explain how to use annotated tag
  • Differences between lightweight tag and annotated tag
  • Explain why the annotated tag is preferable

6. Branching in Git

  • Importance of branching
  • Explain about the default branch
  • Explain about how to create a branch
  • Demonstrate how to work branches
  • Explain how to switch between branches
  • Displaying commits of different branches

7. Merging and Deleting branches

  • Explain what is merging
  • Explain how to merge two branches
  • Explain how to revert a merge
  • Explain how to delete a branch after merging
  • Explain how to delete a branch before merging

8. Stashing and Cleaning

  • Explain what is stashing
  • Importance of stashing
  • Creating stashes
  • Explain how to list the stashes
  • Explain the stash id
  • Explain the ways of applying a stash
  • Deleting a stash
  • Deleting all the stashes at once

Intermediate Level

9. Hosting Git Repositories

  • Explain Git repository hosting services
  • Explain why to choose GitHub
  • Creating an account in GitHub
  • Creating a repository in GitHub
  • Demonstrate how to manage files in GitHub
  • Creating a branch in GitHub repository
  • Creating a tag in the repository

10. Working with Remote Repositories

  • Explaining what is a remote repository
  • Synchronizing data to a remote repository

Contributors and Content Editors

Nancyvarkey, PoojaMoolya, Pratik kamble, Priyacst