Add onions and garlic to the skillet with a little bit of butter. Fry for 2-3 minutes until onions are translucent. I personally like the onions to be carmelized and then add the garlic and fry for a few minutes, so the garlic doesn't burn. Then add beef to back to the skillet, mixing the mixture.