Print the repository root directory.
BeginnerProductionRapid-fire commands
Answer
git rev-parse --show-toplevel
More on Rapid-fire commands
Print the current branch name (script-friendly).BeginnerList files changed in the last commit.BeginnerShow the commits I made in the last week.BeginnerShow commits on my branch that are not pushed yet, and commits waiting to be pulled.BeginnerList remote branches sorted by most recent commit.IntermediateSearch the working tree for a string with line numbers.Beginner