9 Commits

Author SHA1 Message Date
dc8ae9051e Added images for Viewing File History and Blame 2025-09-11 12:23:31 +05:30
e9870f64f7 new line added 2025-09-10 22:06:03 +05:30
9c3547a940 check log 2025-09-10 21:57:30 +05:30
58880219ea added new txt 2025-09-10 21:55:56 +05:30
2745965e15 new line added 2025-09-10 21:54:20 +05:30
cba5dc492d new txt added 2025-09-10 21:50:08 +05:30
071d2cf8a6 added to git 2025-09-10 21:49:13 +05:30
46c4db4c17 created new file 2025-09-10 21:47:54 +05:30
5c23bb7dcb create new branch 2025-08-23 09:45:20 +05:30
26 changed files with 36 additions and 38 deletions

1
.env
View File

@ -1 +0,0 @@
added env file

1
.gitignore vendored
View File

@ -1 +0,0 @@
.ignore.txt

26
ASSIGNMENT-04-09-2025.md Normal file
View File

@ -0,0 +1,26 @@
## Part 1: Viewing File History
![alt text](<git log --example.png>)
![alt text](<git log -p -- example.txt.png>)
![alt text](<git log --oneline -- example.txt.png>)
## How many commits modified this file?
7 commits
## What differences do you see when adding the -p option?
Shows detailed changes for each commit in the file.
## Part 2: Viewing File History with Blame
![alt text](<git blame example.txt.png>)
![alt text](<git blame -L 1,5 example.txt.png>)
![alt text](<git blame -e example.txt.png>)
## Who changed each line of the file?
Ajishini, Solomon
## How does -L help when the file is large?
To view the history of specific lines in a file.
## What extra information does -e provide?
To get the email id of the user who made the chages in the file.

View File

@ -2,28 +2,4 @@ Step 1 : Create new empty repository
- Visited the Git-Training-Hub organization on Git Comorin
- Created a new repository named as git-practice-Ajishini
- Created with no README, no .gitignore and no license
- ![Repository_Screenshot](GIT_ASSIGNMENT.png)
1. Checking Git Version
- ![Repository_Screenshot](git_version.png)
2. Checking Git Status
- ![Repository_Screenshot](git_status.png)
3. Adding Files to Staging
- ![Repository_Screenshot](git_add.png)
4. Viewing Commit History
- ![Repository_Screenshot](git_log.png)
5. Compact History (Oneline)
- ![Repository_Screenshot](git_log--oneline--graph.png)
6. Visual History (Graph)
- ![Repository_Screenshot](git_log--oneline--graph.png)
7. Checking Differences
- ![Repository_Screenshot](git_diff.png)
8. Comparing Two Commits
- ![Repository_Screenshot](git_commit-commit.png)
9. Exploring Branches
- ![Repository_Screenshot](git_checkout.png)
10. Cloning a Repository
- ![Repository_Screenshot](cloned-repo.png)
11. Pulling the Code
- ![Repository_Screenshot](git_pull.png)
12. Using gitignore
- ![Repository_Screenshot](git_ignore.png)
- ![Repository_Screenshot](GIT_ASSIGNMENT.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

7
example.txt Normal file
View File

@ -0,0 +1,7 @@
New file created
Added to git
Commit message
check the status
Switch to new branch
Check log
Added new line in the feature/testcase branch

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
git blame example.txt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
git log --example.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

View File

@ -1 +1 @@
Create new text file
Create new branch

View File

@ -1,3 +1,2 @@
- Text file
- Changes changed
- new line added
- Changes changed

View File

@ -1,7 +0,0 @@
- Created readme.md in a repo and renamed it to README.md
- ![Repository_Screenshot](readme.png)
- Git didnt show changes because windows system is case-insensitive
- Fixed it using:
`git mv -f readme.md README.md`
`git commit -m "Rename readme.md to README.md"`
- Reason: Git is case-sensitive, but case-insensitive filesystems treat both names as the same

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

View File

@ -1 +0,0 @@
this is a txt file