Git

Git

Basic

Git is a distributed version control system to track changes in source code. Git was created by Linus Torvalds in 2005 for Linux kernel development. Git is the most widely used version control system. You could use git on a command line or using a Graphical UI. You can use Git to travel back in time with respect to your source code and make changes. 

This competency includes a basic understanding of version control, basic git commands, basic branch management. Merging and simple rewriting history. 

Key Competencies: 

  1. Version Control Basics - Understanding the basics of version control.
    1. Installing and basic configuration of git.
    2. Know where to get help -- git help
  2. Git Basic Commands - Knowledge of Git basic commands and know when and how to use them. Cloning a repository, adding files, commit and push, adding a remote
    1. git clone <repo_ur>
    2. git init
    3. git add. 
    4. git diff
    5. git status
    6. git commit -m “commit message”
    7. git remote add origin <url>
  3. Branching - Knowledge of how to create a git branch, push the branch, and create merge requests, navigating around the branches.
    1. git checkout -b <branch_name>
    2. git push origin <branch_name>
    3. git checkout <branch_name>
  4. Merging - Knowledge of how to merge branches and resolve git conflicts.
  5. Git Log - Knowing how to view the git commit history and understand it. 
    1. git log
    2. git log --pretty=oneline
    3. git log --pretty=format:"%h %s" --graph
  6. Move and Remove - Moving and removing files. 
    1. git mv 
    2. git rm 
  7. Amend - Knowledge of undoing actions with git --amend
  8. Stash - Knowledge of stashing your changes and using them when needed
    1. git stash 
    2. git stash pop
  9. Gitignore - Knowledge of how to use the .gitignore file.