• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Twitter GitHub
You are here: Home / Archives for Git

Git

How To Use Git Bisect Logo

How To Use Git Bisect

Last updated on March 30, 2017 by Sal Ferrarello

Historically, when trying to track down a bug in my code I spent a lot of time trying to determine exactly where the bug appears in the code. On all of my projects I use Git for version control. Knowing exactly which commit introduced the bug helps me track down the bug. Git bisect is […]

Filed Under: Programming Tagged With: command line, Git

Improve Git Log

Last updated on January 29, 2021 by Sal Ferrarello

By default the output of ‘git log’ is not nearly as useful as it could be. By creating a new command ‘git lg’ that uses some of the options available to ‘git log’, we create a much more useful command.

Filed Under: Computing, Programming, Solution Tagged With: Git, git alias, gitconfig

WP Engine Syntax Error Composer autoload_static.php

Last updated on January 17, 2017 by Sal Ferrarello

While working with a client recently, I found that deploying to WP Engine with Git had stopped working. The Symptom The following appeared on the command line when I ran git push production remote: – warning: syntax Error Found in wp-content/vendor/composer/autoload_static.php … remote: – failed: we detected a PHP syntax failure. The Problem The file […]

Filed Under: Dev Tips, Solution Tagged With: Git, WordPress, WP Engine

Git Case Sensitive Rename

Last updated on December 17, 2014 by Sal Ferrarello

One can rename a file with git mv however, if you try to use this technique to change the case of the filename it will fail and you’ll get fatal: destination exists. I prefer to keep all my filenames lowercase, so getting this to work is important to me. If I modified the filename case […]

Filed Under: Computing Tagged With: command line, Git

Git file force as binary

Last updated on August 26, 2016 by Sal Ferrarello

Goal Mark generated (concatenated and minified) JavaScript files and CSS files as binary files within Git to allow checking them in while avoiding merge conflicts (currently, I don’t check these files in). Failure I have been unable to get this to work so I thought I’d document my issue here and update this page when […]

Filed Under: Programming Tagged With: Git

Git Submodule fatal: Could not read from remote repository

Last updated on April 18, 2014 by Sal Ferrarello

Why to Setup Your Git Submodules as https:// not ssh I was pulling a public GitHub repo the other day which featured submodules.  The frustrating problem is whenever I tried to init the submodules with the line git submodule update –init –recursive I got the error Git Submodule fatal: Could not read from remote repository […]

Filed Under: Computing Tagged With: Git

Undo Git Commit

Last updated on June 8, 2015 by Sal Ferrarello

That is Not What I Meant to Commit It seems no matter how many times I do git status, I still managed to sneak in a completely wrong commit sometimes.  Additionally, I never remember how to undo a commit so I end up googling “undo git commit” and I get way more information than I […]

Filed Under: Computing Tagged With: Git

Picture of a Tag that Might be Found on Luggage

Git Conflict Compiled Sass Files

Last updated on March 19, 2014 by Sal Ferrarello

I’ve been using both Git and Sass for some time now. These two tools have had a huge positive impact on my development. The issue that arises when combining Git and Sass is when checking in compiled CSS, it is common to get conflicts with other contributors on the Git repository. Don’t Check in Your […]

Filed Under: Computing, Dev Tips, Programming Tagged With: Git, Sass, website

  • «Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 4
  • Go to page 5
  • Go to page 6

Copyright © 2022 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in