git config --global user.name "<your name>"
git config --global user.email "<youremail@somewhere.com>"
Show current git configuration:
git config --list
If you get this error in Visual Studio Code when trying to commit without first setting git username/email, then run the above commands to fix: “Make sure you configure your ‘user.name’ and ‘user.email’ in git.”
You way be wondering why I wrote this blog post? The reason is that most of the current Google results require you to scroll down very far to get to the main point. So with this post, I can just google for “chinhdo git username” and I find what I need immediately right at the top of the page.
To list available contexts: kubectl config get-contexts To show the current context: kubectl config current-context…
kubectl exec -it <podname> -- sh To get a list of running pods in the…
# Create a soft symbolic link from /mnt/original (file or folder) to ~/link ln -s…
TypeScript/JavaScript function getLastMonday(d: Date) { let d1 = new Date(d.getFullYear(), d.getMonth() + 1, 0); let…
I had to do some SMTP relay troubleshooting and it wasn't obvious how to view…
I spent a good part of the weekend on a re-design of a client's dental…