Skip to content

Instantly share code, notes, and snippets.

@dmitshur

dmitshur/file.sh Secret

Last active December 20, 2021 16:46
Show Gist options
  • Save dmitshur/ca83a02571e8e1da05447baf5a4a4fcb to your computer and use it in GitHub Desktop.
Save dmitshur/ca83a02571e8e1da05447baf5a4a4fcb to your computer and use it in GitHub Desktop.
seeing what happens in git if using URL in place of email
$ cd $(mktemp -d)
$ git init
$ git log
fatal: your current branch 'main' does not have any commits yet
$ git config user.name
Dmitri Shuralyov
$ git config user.email
dmitri@shuralyov.com
$ git config user.name "Dmitri Shuralyov"
$ git config user.email "https://dmitri.shuralyov.com/"
$ tail -3 .git/config
[user]
name = Dmitri Shuralyov
email = https://dmitri.shuralyov.com/
$ touch hi.txt
$ git add hi.txt
$ git commit
[main (root-commit) 5868a51] hello world?
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 hi.txt
$ git log
commit 5868a5155352f5816c7592c1077f1c70a127544c (HEAD -> main)
Author: Dmitri Shuralyov <https://dmitri.shuralyov.com/>
Date: Mon Dec 20 08:15:16 2021 -0500
hello world?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment