We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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:
- Version Control Basics - Understanding the basics of version control.
- Installing and basic configuration of git.
- Know where to get help -- git help
- 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
- git clone <repo_ur>
- git init
- git add.
- git diff
- git status
- git commit -m “commit message”
- git remote add origin <url>
- Branching - Knowledge of how to create a git branch, push the branch, and create merge requests, navigating around the branches.
- git checkout -b <branch_name>
- git push origin <branch_name>
- git checkout <branch_name>
- Merging - Knowledge of how to merge branches and resolve git conflicts.
- Git Log - Knowing how to view the git commit history and understand it.
- git log
- git log --pretty=oneline
- git log --pretty=format:"%h %s" --graph
- Move and Remove - Moving and removing files.
- git mv
- git rm
- Amend - Knowledge of undoing actions with git --amend
- Stash - Knowledge of stashing your changes and using them when needed
- git stash
- git stash pop
- Gitignore - Knowledge of how to use the .gitignore file.