About John Wachira
LinkedInJohn is a Git and PowerShell geek. He uses his expertise in the version control system to help businesses manage their source code. According to him, Shell scripting is the number one choice for automating the management of systems.
Articles by John Wachira
Batch Howtos
- How to Check for Empty Variables in Batch
- How to Check if a Specified Environmental Variable Contains a Substring
- How to Create a Shortcut for a Batch File
- How to Get the Current Batch File Directory
- How to Loop Through Files in Subdirectories using Batch
- How to Remove X Characters of a File Name using Batch
- How to Stop a Running Process From a Batch File
PowerShell Howtos
- How to Copy and Paste From a Variable in PowerShell
- How to Create an Empty Array of Arrays in PowerShell
- How to Display Current Time Zone in PowerShell
- How to Extract a Column From a CSV File and Store It in a Variable in PowerShell
- How to Find a Specific File by Name Using PowerShell
- How to Loop Through Files and Folders in PowerShell
- How to Write Comment-Based Help for PowerShell Scripts
- How to Check if a File Contains a Specific String Using PowerShell
- How to Extract a PowerShell Substring From a String
- How to Get a List of Processes Similar to the Task Manager in PowerShell
- How to Get Exit Code From Start-Process in PowerShell
- How to Import Text File and Format and Export It to CSV in PowerShell
- How to Split Large File in PowerShell
- How to Use the Get-Clipboard Output in PowerShell
Git Howtos
- Difference Between Forking and Branching on GitHub
- Difference Between Forking and Cloning on GitHub
- How to Fetch All Branches in Git
- How to Have Git Add and Git Commit in One Command
- How to Pull Origin Branch Overwrites Master Branch in Git
- How to Show Diff Details for Uncommitted Changes in Git
- How to View Merged and Unmerged Branches in Git
- Difference Between Git Merge Origin/Master and Git Pull
- Difference Between Git Pull and Git Pull Origin Master
- How to Add Files to a Git Repository
- How to Download a Specific Tag With Git
- How to Fix: Git Is Not Recognized as an Internal or External Command Error
- How to git add, git commit, and git push in One Command
- How to Move Existing Uncommitted Changes to a New Branch in Git
- How to Tag an Older Commit in Git
- How to Undo a Git Pull
- The Meaning of Fetch_Head in Git
- Difference Between Git Checkout and Git Clone
- Difference Between Git Merge Master and Git Merge Origin/Master
- Difference Between Git Push Origin and Git Push Origin Master
- Git Cherry-Pick vs Merge Workflow
- How to Checkout a Remote Git Branch
- How to Commit and Push a Single File to the Remote in Git
- How to Commit Current Changes to a Different Branch in Git
- How to Exit the Commit Message Editor
- How to Ignore Everything Except Some Files in Git
- How to Revert a Git Repository to a Previous Commit
- How to Add All Files for Commit Except One File
- Difference Between the Git Reset, Revert, and Checkout Commands
- How to Clone a Git Repository With a Specific Revision
- How to Commit Untracked Files in Git
- How to Delete Master Branch in Git
- How to Make an Initial Push to a Remote Repository With Git
- How to Make the Development Branch Identical to the Master Branch
- How to Pull a Specific Folder in Git
- How to Push a Specific Commit to a Remote Repository
- How to Check Username and Email Configuration in Git
- How to Create an Empty Branch on GitHub
- How to Delete a Commit but Preserve Changes in Git
- How to Move Git Branch Pointer to Different Commit
- How to Pull and Update One File in Git
- How to Remove Local Git Changes
- How to Revert an Amended Commit in Git
- How to Add a .gitignore File to an Existing Repository
- How to Get the Name of a Git Repository
- How to Identify the Recent Common Ancestor for Two Branches in Git
- How to Ignore Local File Changes in Git
- How to Modify a Specific Commit in Git
- How to Restore a Reverted Git Commit
- How to Revert a Git Merge With Conflicts
- How to Rollback to an Old Commit in a Public Git Repository
- How to Resolve Git Status Unmerged Paths
- How to Clean the Local Working Directory in Git
- How to Commit Some Files in a Branch and Make Them Available in Another
- How to Link to an Existing GitHub Repository
- How to Make a Folder a Git Repo and Push to Remote
- How to Merge the Development Branch Into Master in Git
- How to Rebase to a Specific Commit in Git
- How to Update a Git Clone
- How to Check Upstream Tracking Git Branches
- How to Configure Git Credentials to Recall Password and Username
- How to Copy Changes From One Branch to Another in Git
- How to Create a Master Branch in a Bare Git Repository
- How to Display Filenames Changed in All Commits
- How to Git Rebase Origin/Branch vs. Git Rebase Origin Branch
- How to Search Commit Messages Using Command Line in Git
- Git Pull Not Pulling Everything
- How to Create a Remote Repository From a Local Repository in Git
- How to Create a Branch From a Tag in Git
- How to Create a Git Patch From Uncommitted Changes
- How to Fork a Repo in GitHub
- How to List Commits Not Pushed to the Remote Repository in Git
- How to Open a File on Git Bash
- How to Show Conflicted Files in Git
- How to Squash Commits That Are Already Pushed in Git
- How to Stage Deleted Files in Git
- How to Stop Tracking a Remote Branch in Git
- How to Synchronize a Local Repository With a Remote Repository in Git
- How to Undo the Git add Command
- Difference Between Git Checkout --Track Origin/Branch and Git Checkout -B Branch Origin/Branch
- Difference Between Git RM --Cached and Git Reset File
- How to Add a File to the Last Commit in Git
- How to Add All Files in a Folder to Commit in Git
- How to Diff a File to an Arbitrary Version in Git
- How to Filter the Commit History in Git
- How to Find a Deleted File in a Project's Commit History in Git
- How to Finish a Merge After Resolving Conflicts in Git
- How to Manage Version Number in Git
- How to Resolve Git Stash Conflicts Without Commit
- Bower: ENOGIT Git Is Not Installed or Not in the PATH
- How to Configure Git to Ignore File Mode Changes
- How to Fix Another Git Process Seems to Be Running in This Repository Error
- How to Fix Fatal: Origin Does Not Appear to Be a Git Repository Error in Git
- How to Fix Fatal: The Current Branch Master Has No Upstream Branch Error in Git
- How to Solve Permission Denied (Publickey) Error in Git
- How to Configure Git Bash With Visual Studio Code
- How to Create Groups and Move Projects in GitLab
- How to Fix Fatal: Refusing to Merge Unrelated Histories Error in Git
- How to Fix Fatal: The Remote End Hung Up Unexpectedly Error in Git
- How to Use Git Rebase on the Command Line
- How to Search for Specific String in the Git Commit History
- How to Selectively Merge Changes From Different Branches in Git
- How to Understand the Git Commit Signoff Feature
- Git HEAD^ vs Git HEAD~ vs Git HEAD{@}
- Git Stash vs Shelve in IntelliJ IDEA
- How to Configure a Proxy to Work With Git
- How to List Git Submodules in Git
- How to Set Up Meld as Difftool and Mergetool for Git
- How to Set Up SourceGear DiffMerge Tool for Git
- How to Clone a Single Remote Branch in Git
- How to Export a Git Project
- How to Move an Existing Tag in Git
- How to Rename a Git Repository
- How to Revert a Git Repository by Commit ID
- How to Merge Files Without Auto Commit in Git
- How to Undo the Last Commit in a Remote Git Repository
- Git Push --force-with-lease vs Git Push --force
- How to Clean Up Git Repositories With the Git Prune Command
- How to Color the Git Console
- How to Show Staged and Unstaged Changes in Git
- How to Undo Local Changes to a Single File in Git
- The Git Index.Lock File
- How to Compare Files, Commits, and Branches in Git
- How to Merge a Specific Commit in Git
- How to Push and Track a New Local Git Branch to a Remote Repository
- How to Undo the Last Git Commit in a Local Repository
- How to Update a Repository by Setting Up a Remote
- How to Close the Git Commit Editor on Windows
- How to Force Git Push to Overwrite Files in Remote Repository
- How to Ignore Local Changes When Pulling From Remote Repository
- How to Ignore Untracked Files in Git
- How to Rename Files and Directories in a Git Repository
- How to Revert Git Repository to a Previous Commit
- How to Understand the Git Conflict Markers
- How to Use Git Diff to Ignore Whitespaces in Git
- How to Add Files in Git
- How to Clone Into a Non-Empty Git Directory
- How to Overwrite Local Changes in Git
- How to Troubleshoot Git Patch Error
- How to Use Patch Files in Git
- Difference Between Git Fetch and Git Pull
- How to Delete Local Commits in Git
- Git Pull Not Updating Files
- How to Apply Stashes in Git
- How to Copy and Paste in Git Bash
- How to Merge Local Branches in Git
- How to Pull the Latest Git Submodule
- How to Save Username and Password in Git
- How to Visualize Git Repository
- The .git Directory Explained
- How to Create and Use Branches on Git
- How to Rebase Git Branch
- How to Undo Changes in Git
- The Difference Between Git Pull and Git Clone
- How to Commit Changes to a Git Branch
- How to Undo a Git Stash
PHP Howtos
- How to Convert a PDF Document to a Preview Image in PHP
- How to Download PDF Files in HTML With PHP
- How to Minify HTML Output of the PHP Page
- How to Set Up PHP-FPM and Nginx Docker Containers
- Magic Quotes in PHP
- PHP Conditional Statements
- The PHP shell_exec() and exec() Functions
- How to Create a PHP Dropdown List
- How to Create a Zip File in PHP
- How to Push Items to Associative Array in PHP
- How to Store Div Id in a PHP Variable and Pass It to JavaScript
- PHP Error Handlers
- isset() vs. empty() Functions in PHP
- die() and exit() Functions in PHP
- How to Autoload Classes in PHP
- How to Insert Form Data Using MySQL Table in PHP
- How to UPDATE Query in a MySQL Table in PHP
- Array_map and array_walk Functions in PHP
- Constructor in PHP
- How to Compare Strings Using == Operator and STRCMP Function in PHP
- How to Select Count Function From a MySQL Table in PHP
- How to Format a Number to a Dollar Amount in PHP