Add the garlic after the onions and bacon have cooked and reduce the heat to medium, stirring constantly for about 30 seconds to 1 minute.