Some popular repositories for eBooks on GitHub include:

"Atomic Habits" is a comprehensive guide to building good habits and breaking bad ones. The book is divided into four laws of behavior change:

It sounds like you're looking for a digital copy of James Clear's Atomic Habits