Git Suddenly Wanted My Password

I have been feeling pretty good about using git. Then when I tired to push back to git hub. Git asked for a password for git hub. Frustrating, every  time I feel comfortable coding with out training wheels , something happens. I solved the problem following the directions on git hub and installed osxkeychain. Git push worked the next time.