Git tips and tricks
How do I change the author of my commits?
Sometimes it happens that you commit from different computers with different git author and email configurations. If you prefer consistency, follow the following steps:
Reset the git commits author
Push the changes to remote
- -u Most of commits will be out of sync after that change, so this is useful to refresh the association between local branches and remote
- -f Force push
- –all Push all branches
Keep your clone in-sync
Source: could I change my name and surname in all previous commits?
How many lines of code do I have?
Reading “How many lines of code is Facebook?“ question, I found this git gem: