Here are some day to day useful git commands

Show all remotes

git remote -v

git remote show origin #shows branches, tags etc.

Remove a file from a Git repository without deleting it from the local filesystem

For single file:

git rm --cached myremotefiletodelete.log

For single directory:

git rm --cached -r myremotedirectortytodelete