<!DOCTYPE html> <htmllang="en"> <head> <metacharset="UTF-8"> <title>First example</title> </head> <body> <p>This is the first example</p> <p>We add a new paragraph on the first example</p> <p>This is the example commit for git commit -am</p> <p>This is the example1 for git configuration</p> </body> </html>
Git commit -am “Before configuration”
Git log
各位可以看一下上面我們我們剛剛所commit的Author 資料。
現在加入另一段敘述在example1.html檔案內,如下:
<!DOCTYPE html> <htmllang="en"> <head> <metacharset="UTF-8"> <title>First example</title> </head> <body> <p>This is the first example</p> <p>We add a new paragraph on the first example</p> <p>This is the example commit for git commit -am</p> <p>This is the example1 for git configuration</p> <p>This is the example after git configuration</p> </body> </html>
現在讓我們來定義git 配置的使用者資訊:
輸入
Git config --global user.name Ray Git config --global user.email example@email.com
留言