John Wachira avatar John Wachira avatar

About John Wachira


John 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

  1. How to Check for Empty Variables in Batch
  2. How to Check if a Specified Environmental Variable Contains a Substring
  3. How to Create a Shortcut for a Batch File
  4. How to Get the Current Batch File Directory
  5. How to Loop Through Files in Subdirectories using Batch
  6. How to Remove X Characters of a File Name using Batch
  7. How to Stop a Running Process From a Batch File

PowerShell Howtos

  1. How to Copy and Paste From a Variable in PowerShell
  2. How to Create an Empty Array of Arrays in PowerShell
  3. How to Display Current Time Zone in PowerShell
  4. How to Extract a Column From a CSV File and Store It in a Variable in PowerShell
  5. How to Find a Specific File by Name Using PowerShell
  6. How to Loop Through Files and Folders in PowerShell
  7. How to Write Comment-Based Help for PowerShell Scripts
  8. How to Check if a File Contains a Specific String Using PowerShell
  9. How to Extract a PowerShell Substring From a String
  10. How to Get a List of Processes Similar to the Task Manager in PowerShell
  11. How to Get Exit Code From Start-Process in PowerShell
  12. How to Import Text File and Format and Export It to CSV in PowerShell
  13. How to Split Large File in PowerShell
  14. How to Use the Get-Clipboard Output in PowerShell

Git Howtos

  1. Difference Between Forking and Branching on GitHub
  2. Difference Between Forking and Cloning on GitHub
  3. How to Fetch All Branches in Git
  4. How to Have Git Add and Git Commit in One Command
  5. How to Pull Origin Branch Overwrites Master Branch in Git
  6. How to Show Diff Details for Uncommitted Changes in Git
  7. How to View Merged and Unmerged Branches in Git
  8. Difference Between Git Merge Origin/Master and Git Pull
  9. Difference Between Git Pull and Git Pull Origin Master
  10. How to Add Files to a Git Repository
  11. How to Download a Specific Tag With Git
  12. How to Fix: Git Is Not Recognized as an Internal or External Command Error
  13. How to git add, git commit, and git push in One Command
  14. How to Move Existing Uncommitted Changes to a New Branch in Git
  15. How to Tag an Older Commit in Git
  16. How to Undo a Git Pull
  17. The Meaning of Fetch_Head in Git
  18. Difference Between Git Checkout and Git Clone
  19. Difference Between Git Merge Master and Git Merge Origin/Master
  20. Difference Between Git Push Origin and Git Push Origin Master
  21. Git Cherry-Pick vs Merge Workflow
  22. How to Checkout a Remote Git Branch
  23. How to Commit and Push a Single File to the Remote in Git
  24. How to Commit Current Changes to a Different Branch in Git
  25. How to Exit the Commit Message Editor
  26. How to Ignore Everything Except Some Files in Git
  27. How to Revert a Git Repository to a Previous Commit
  28. How to Add All Files for Commit Except One File
  29. Difference Between the Git Reset, Revert, and Checkout Commands
  30. How to Clone a Git Repository With a Specific Revision
  31. How to Commit Untracked Files in Git
  32. How to Delete Master Branch in Git
  33. How to Make an Initial Push to a Remote Repository With Git
  34. How to Make the Development Branch Identical to the Master Branch
  35. How to Pull a Specific Folder in Git
  36. How to Push a Specific Commit to a Remote Repository
  37. How to Check Username and Email Configuration in Git
  38. How to Create an Empty Branch on GitHub
  39. How to Delete a Commit but Preserve Changes in Git
  40. How to Move Git Branch Pointer to Different Commit
  41. How to Pull and Update One File in Git
  42. How to Remove Local Git Changes
  43. How to Revert an Amended Commit in Git
  44. How to Add a .gitignore File to an Existing Repository
  45. How to Get the Name of a Git Repository
  46. How to Identify the Recent Common Ancestor for Two Branches in Git
  47. How to Ignore Local File Changes in Git
  48. How to Modify a Specific Commit in Git
  49. How to Restore a Reverted Git Commit
  50. How to Revert a Git Merge With Conflicts
  51. How to Rollback to an Old Commit in a Public Git Repository
  52. How to Resolve Git Status Unmerged Paths
  53. How to Clean the Local Working Directory in Git
  54. How to Commit Some Files in a Branch and Make Them Available in Another
  55. How to Link to an Existing GitHub Repository
  56. How to Make a Folder a Git Repo and Push to Remote
  57. How to Merge the Development Branch Into Master in Git
  58. How to Rebase to a Specific Commit in Git
  59. How to Update a Git Clone
  60. How to Check Upstream Tracking Git Branches
  61. How to Configure Git Credentials to Recall Password and Username
  62. How to Copy Changes From One Branch to Another in Git
  63. How to Create a Master Branch in a Bare Git Repository
  64. How to Display Filenames Changed in All Commits
  65. How to Git Rebase Origin/Branch vs. Git Rebase Origin Branch
  66. How to Search Commit Messages Using Command Line in Git
  67. Git Pull Not Pulling Everything
  68. How to Create a Remote Repository From a Local Repository in Git
  69. How to Create a Branch From a Tag in Git
  70. How to Create a Git Patch From Uncommitted Changes
  71. How to Fork a Repo in GitHub
  72. How to List Commits Not Pushed to the Remote Repository in Git
  73. How to Open a File on Git Bash
  74. How to Show Conflicted Files in Git
  75. How to Squash Commits That Are Already Pushed in Git
  76. How to Stage Deleted Files in Git
  77. How to Stop Tracking a Remote Branch in Git
  78. How to Synchronize a Local Repository With a Remote Repository in Git
  79. How to Undo the Git add Command
  80. Difference Between Git Checkout --Track Origin/Branch and Git Checkout -B Branch Origin/Branch
  81. Difference Between Git RM --Cached and Git Reset File
  82. How to Add a File to the Last Commit in Git
  83. How to Add All Files in a Folder to Commit in Git
  84. How to Diff a File to an Arbitrary Version in Git
  85. How to Filter the Commit History in Git
  86. How to Find a Deleted File in a Project's Commit History in Git
  87. How to Finish a Merge After Resolving Conflicts in Git
  88. How to Manage Version Number in Git
  89. How to Resolve Git Stash Conflicts Without Commit
  90. Bower: ENOGIT Git Is Not Installed or Not in the PATH
  91. How to Configure Git to Ignore File Mode Changes
  92. How to Fix Another Git Process Seems to Be Running in This Repository Error
  93. How to Fix Fatal: Origin Does Not Appear to Be a Git Repository Error in Git
  94. How to Fix Fatal: The Current Branch Master Has No Upstream Branch Error in Git
  95. How to Solve Permission Denied (Publickey) Error in Git
  96. How to Configure Git Bash With Visual Studio Code
  97. How to Create Groups and Move Projects in GitLab
  98. How to Fix Fatal: Refusing to Merge Unrelated Histories Error in Git
  99. How to Fix Fatal: The Remote End Hung Up Unexpectedly Error in Git
  100. How to Use Git Rebase on the Command Line
  101. How to Search for Specific String in the Git Commit History
  102. How to Selectively Merge Changes From Different Branches in Git
  103. How to Understand the Git Commit Signoff Feature
  104. Git HEAD^ vs Git HEAD~ vs Git HEAD{@}
  105. Git Stash vs Shelve in IntelliJ IDEA
  106. How to Configure a Proxy to Work With Git
  107. How to List Git Submodules in Git
  108. How to Set Up Meld as Difftool and Mergetool for Git
  109. How to Set Up SourceGear DiffMerge Tool for Git
  110. How to Clone a Single Remote Branch in Git
  111. How to Export a Git Project
  112. How to Move an Existing Tag in Git
  113. How to Rename a Git Repository
  114. How to Revert a Git Repository by Commit ID
  115. How to Merge Files Without Auto Commit in Git
  116. How to Undo the Last Commit in a Remote Git Repository
  117. Git Push --force-with-lease vs Git Push --force
  118. How to Clean Up Git Repositories With the Git Prune Command
  119. How to Color the Git Console
  120. How to Show Staged and Unstaged Changes in Git
  121. How to Undo Local Changes to a Single File in Git
  122. The Git Index.Lock File
  123. How to Compare Files, Commits, and Branches in Git
  124. How to Merge a Specific Commit in Git
  125. How to Push and Track a New Local Git Branch to a Remote Repository
  126. How to Undo the Last Git Commit in a Local Repository
  127. How to Update a Repository by Setting Up a Remote
  128. How to Close the Git Commit Editor on Windows
  129. How to Force Git Push to Overwrite Files in Remote Repository
  130. How to Ignore Local Changes When Pulling From Remote Repository
  131. How to Ignore Untracked Files in Git
  132. How to Rename Files and Directories in a Git Repository
  133. How to Revert Git Repository to a Previous Commit
  134. How to Understand the Git Conflict Markers
  135. How to Use Git Diff to Ignore Whitespaces in Git
  136. How to Add Files in Git
  137. How to Clone Into a Non-Empty Git Directory
  138. How to Overwrite Local Changes in Git
  139. How to Troubleshoot Git Patch Error
  140. How to Use Patch Files in Git
  141. Difference Between Git Fetch and Git Pull
  142. How to Delete Local Commits in Git
  143. Git Pull Not Updating Files
  144. How to Apply Stashes in Git
  145. How to Copy and Paste in Git Bash
  146. How to Merge Local Branches in Git
  147. How to Pull the Latest Git Submodule
  148. How to Save Username and Password in Git
  149. How to Visualize Git Repository
  150. The .git Directory Explained
  151. How to Create and Use Branches on Git
  152. How to Rebase Git Branch
  153. How to Undo Changes in Git
  154. The Difference Between Git Pull and Git Clone
  155. How to Commit Changes to a Git Branch
  156. How to Undo a Git Stash

PHP Howtos

  1. How to Convert a PDF Document to a Preview Image in PHP
  2. How to Download PDF Files in HTML With PHP
  3. How to Minify HTML Output of the PHP Page
  4. How to Set Up PHP-FPM and Nginx Docker Containers
  5. Magic Quotes in PHP
  6. PHP Conditional Statements
  7. The PHP shell_exec() and exec() Functions
  8. How to Create a PHP Dropdown List
  9. How to Create a Zip File in PHP
  10. How to Push Items to Associative Array in PHP
  11. How to Store Div Id in a PHP Variable and Pass It to JavaScript
  12. PHP Error Handlers
  13. isset() vs. empty() Functions in PHP
  14. die() and exit() Functions in PHP
  15. How to Autoload Classes in PHP
  16. How to Insert Form Data Using MySQL Table in PHP
  17. How to UPDATE Query in a MySQL Table in PHP
  18. Array_map and array_walk Functions in PHP
  19. Constructor in PHP
  20. How to Compare Strings Using == Operator and STRCMP Function in PHP
  21. How to Select Count Function From a MySQL Table in PHP
  22. How to Format a Number to a Dollar Amount in PHP