diff --git a/GIT_ASSIGNMENT.md b/GIT_ASSIGNMENT.md index 5528575..5e4c7a7 100644 --- a/GIT_ASSIGNMENT.md +++ b/GIT_ASSIGNMENT.md @@ -1,3 +1,69 @@ -- Visited the Git-Training-Hub organization on Git Comorin. -- Created a new repository named git-practice-Renejit as per the assignment. -- Screenshot attached below. \ No newline at end of file + + +# Git Assignment + +## Git Version Check + +![Git version check](git_version.png) + +--- + +## Git Username + +![Git status](git_username.png) + +--- + +## Git List + +![Git status](git_list.png) + +--- + +## Git Init + +![Git add](git_init_status.png) + +--- + +## Git Add + +![Git add](git_adding_notes.png) +![Git add](git_add.png) +![Git add](git_commit_notes.png) +![Git add](git_file_status.png) + +--- + +## Git Log + +![Git log](git_log.png) + +--- + +## Git Log (graph) + +![Git log graph](onelinegraph.png) + +--- + +## Git Diff + +![Git diff](git_diff.png) + +--- + +## Git Diff (commit1 vs commit2) + +![Git diff between two commits](git_diff_between_commits.png) + +--- + +### Notes: + +1. **Git Version Check** – Confirms the installed Git version. +2. **Git Status** – Shows the current working tree status, including staged/unstaged changes. +3. **Git Add** – Adds changes to the staging area, preparing them for commit. +4. **Git Log** – Displays commit history. +5. **Git Log (oneline/graph)** – Shows simplified or visual commit history. +6. **Git Diff** – Shows changes between commits or working directory states. diff --git a/notes.txt b/notes.txt new file mode 100644 index 0000000..e69de29 diff --git a/todo.txt b/todo.txt new file mode 100644 index 0000000..bc08096 --- /dev/null +++ b/todo.txt @@ -0,0 +1,15 @@ +Explanation of Git Comments + +git config --global user.name "Renejit" +Explanation: This command sets up your name for Git. Git will use this name for all commits you make, so your contributions can be tracked properly. + +git config --global user.email "renejit.vedamoni@comorin.co" +Explanation: Similar to the previous command, this sets up your email address for Git. This email is used to associate your commits with your identity. It’s important for collaboration. + +git init +Explanation: Initializes a new Git repository in the current directory. This turns your project folder into a version-controlled repository. + +git status +Explanation: Shows the status of the working directory. It tells you which files are modified, staged, or untracked, and if there are changes to commit. + +