├── 14 - Git log.png ├── 7 - Getting git log.png ├── 2-Cd into learn_git folder.png ├── 11 - Removing third-txt file.png ├── 16 - Global Settings preview.png ├── 3 - Creating third-txt file.png ├── 8 - Creating file fourth-txt.png ├── 1 - Creating learn_git folder.png ├── 10 - Commiting creation of fouth-txt.png ├── 6 - Git Commit - add third-txt file.png ├── 4 - Initializing Empty git repository.png ├── 5 - Staging creation of third-txt file.png ├── 12 - Staging deletion of third-txt file.png ├── 13 - Committing removal of third-txt file.png ├── 9 - Staging creation of fourth-txt file.png ├── 15 - Global configuration for git pager settings.png ├── README.md └── .github └── workflows ├── static.yml └── jekyll-gh5-pages.yml /14 - Git log.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/14 - Git log.png -------------------------------------------------------------------------------- /7 - Getting git log.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/7 - Getting git log.png -------------------------------------------------------------------------------- /2-Cd into learn_git folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/2-Cd into learn_git folder.png -------------------------------------------------------------------------------- /11 - Removing third-txt file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/11 - Removing third-txt file.png -------------------------------------------------------------------------------- /16 - Global Settings preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/16 - Global Settings preview.png -------------------------------------------------------------------------------- /3 - Creating third-txt file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/3 - Creating third-txt file.png -------------------------------------------------------------------------------- /8 - Creating file fourth-txt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/8 - Creating file fourth-txt.png -------------------------------------------------------------------------------- /1 - Creating learn_git folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/1 - Creating learn_git folder.png -------------------------------------------------------------------------------- /10 - Commiting creation of fouth-txt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/10 - Commiting creation of fouth-txt.png -------------------------------------------------------------------------------- /6 - Git Commit - add third-txt file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/6 - Git Commit - add third-txt file.png -------------------------------------------------------------------------------- /4 - Initializing Empty git repository.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/4 - Initializing Empty git repository.png -------------------------------------------------------------------------------- /5 - Staging creation of third-txt file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/5 - Staging creation of third-txt file.png -------------------------------------------------------------------------------- /12 - Staging deletion of third-txt file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/12 - Staging deletion of third-txt file.png -------------------------------------------------------------------------------- /13 - Committing removal of third-txt file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/13 - Committing removal of third-txt file.png -------------------------------------------------------------------------------- /9 - Staging creation of fourth-txt file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/9 - Staging creation of fourth-txt file.png -------------------------------------------------------------------------------- /15 - Global configuration for git pager settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StephenLegacy/Git-Essentials-101/HEAD/15 - Global configuration for git pager settings.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## **Git-Essentials-101** 2 | 3 | **Git-Essentials-101** is a beginner-friendly repository designed to demonstrate essential Git commands through practical examples, screenshots, and explanations. It serves as a reference guide for understanding fundamental Git operations, from initializing a repository to staging, committing, and managing file changes. 4 | 5 | ### **Key Features:** 6 | - 📂 **Repository Initialization**: Learn how to create a Git repository from scratch. 7 | - 📝 **File Tracking**: Follow step-by-step instructions on adding, modifying, and removing files. 8 | - ✅ **Staging & Committing**: Understand how to track changes and commit them with meaningful messages. 9 | - 🔍 **Commit History Exploration**: Use `git log` to review and navigate through commit history. 10 | - ⚙️ **Git Configuration**: Adjust global settings, such as setting `core.pager=cat`, and view all Git configurations. 11 | - 🏷️ **Practical Git Workflow**: Apply common Git commands in a structured learning environment. 12 | 13 | This repository is perfect for developers who want to build a strong foundation in Git and version control. 🚀 14 | 15 | - Created By **Stephen Oloo** as a fulfilment of an assignment project | Gomycode - 2025 16 | -------------------------------------------------------------------------------- /.github/workflows/static.yml: -------------------------------------------------------------------------------- 1 | # Simple workflow for deploying static content to GitHub Pages 2 | name: Deploy static content to Pages 3 | 4 | on: 5 | # Runs on pushes targeting the default branch 6 | push: 7 | branches: ["main"] 8 | 9 | # Allows you to run this workflow manually from the Actions tab 10 | workflow_dispatch: 11 | 12 | # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages 13 | permissions: 14 | contents: read 15 | pages: write 16 | id-token: write 17 | 18 | # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. 19 | # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. 20 | concurrency: 21 | group: "pages" 22 | cancel-in-progress: false 23 | 24 | jobs: 25 | # Single deploy job since we're just deploying 26 | deploy: 27 | environment: 28 | name: github-pages 29 | url: ${{ steps.deployment.outputs.page_url }} 30 | runs-on: ubuntu-latest 31 | steps: 32 | - name: Checkout 33 | uses: actions/checkout@v4 34 | - name: Setup Pages 35 | uses: actions/configure-pages@v5 36 | - name: Upload artifact 37 | uses: actions/upload-pages-artifact@v3 38 | with: 39 | # Upload entire repository 40 | path: '.' 41 | - name: Deploy to GitHub Pages 42 | id: deployment 43 | uses: actions/deploy-pages@v4 44 | -------------------------------------------------------------------------------- /.github/workflows/jekyll-gh5-pages.yml: -------------------------------------------------------------------------------- 1 | # Sample workflow for building and deploying a Jekyll site to GitHub Pages 2 | name: Deploy Jekyll with GitHub Pages dependencies preinstalled 3 | 4 | on: 5 | # Runs on pushes targeting the default branch 6 | push: 7 | branches: ["main"] 8 | 9 | # Allows you to run this workflow manually from the Actions tab 10 | workflow_dispatch: 11 | 12 | # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages 13 | permissions: 14 | contents: read 15 | pages: write 16 | id-token: write 17 | 18 | # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. 19 | # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. 20 | concurrency: 21 | group: "pages" 22 | cancel-in-progress: false 23 | 24 | jobs: 25 | # Build job 26 | build: 27 | runs-on: ubuntu-latest 28 | steps: 29 | - name: Checkout 30 | uses: actions/checkout@v4 31 | - name: Setup Pages 32 | uses: actions/configure-pages@v5 33 | - name: Build with Jekyll 34 | uses: actions/jekyll-build-pages@v1 35 | with: 36 | source: ./ 37 | destination: ./_site 38 | - name: Upload artifact 39 | uses: actions/upload-pages-artifact@v3 40 | 41 | # Deployment job 42 | deploy: 43 | environment: 44 | name: github-pages 45 | url: ${{ steps.deployment.outputs.page_url }} 46 | runs-on: ubuntu-latest 47 | needs: build 48 | steps: 49 | - name: Deploy to GitHub Pages 50 | id: deployment 51 | uses: actions/deploy-pages@v4 52 | --------------------------------------------------------------------------------