Updated Git Assignement

This commit is contained in:
2025-08-20 16:55:16 +05:30
parent 12271592be
commit aac19f7a58
3 changed files with 84 additions and 3 deletions

View File

@ -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.
<!-- @format -->
# 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.

0
notes.txt Normal file
View File

15
todo.txt Normal file
View File

@ -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. Its 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.