From 38f22c4dd6971477a6d463c90166aff69761af51 Mon Sep 17 00:00:00 2001 From: vl4dd Date: Thu, 1 Apr 2021 12:21:55 +0200 Subject: [PATCH] Second commit --- Readme.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/Readme.md b/Readme.md index f36aebb..471e501 100644 --- a/Readme.md +++ b/Readme.md @@ -27,6 +27,47 @@ Untracked files: nothing added to commit but untracked files present (use "git add" to track) ``` +### add a file as it looks now to your next commit (stage) +```bash +$ git add Readme.md image.jpg +``` +### commit your staged content as a new commit snapshot +```bash +$ git commit -m "First Commit" +[master (root-commit) 784ae2e] First Commit + Committer: unknown +Your name and email address were configured automatically based +on your username and hostname. Please check that they are accurate. +You can suppress this message by setting them explicitly: + + git config --global user.name "Your Name" + git config --global user.email you@example.com + +After doing this, you may fix the identity used for this commit with: + + git commit --amend --reset-author + + 2 files changed, 61 insertions(+) + create mode 100644 Readme.md + create mode 100644 image.jpg +``` +### set a name & email that is identifiable for credit when review version history +```bash +$ git config --global user.name “[firstname lastname]” + +$ git config --global user.email “[valid-email]” +``` + +### show all commits in the current branch’s history +```bash +$ git log +commit 784ae2e2d10720c23eb7cebdf8386ef2157fe628 (HEAD -> master) +Author: unknown +Date: Thu Apr 1 12:11:34 2021 +0200 + + First Commit + +``` Checker le satus