11 Commits

Author SHA1 Message Date
6bb3edc0f0 Added images for the log and blame 2025-09-11 13:23:29 +05:30
de8a308ff7 new commit 2025-09-11 12:28:32 +05:30
c0027ad789 merging 2025-09-11 12:05:10 +05:30
afae400903 added new file 2025-09-11 10:57:58 +05:30
5796b489dc Added file 2025-09-11 10:57:10 +05:30
690ce8df30 example txt 2025-09-11 10:56:05 +05:30
6975f9a2a4 added readme file; 2025-09-04 11:59:24 +05:30
dd41592d9d Add git ignore image 2025-09-04 10:12:54 +05:30
d17190adaa Added .gitignore 2025-09-01 12:41:29 +05:30
479c061720 Added .gitignore, updated GIT_ASSIGNMENT.md, and added git_push.png 2025-09-01 12:40:13 +05:30
dbd3af5881 Added screenshot 2025-09-01 12:33:11 +05:30
27 changed files with 97 additions and 6 deletions

1
.gitignore vendored Normal file
View File

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

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

@ -0,0 +1,30 @@
## Part 1: Viewing File History
![git log -- example.txt](<git log example.png>)
![git log -p -- example.txt](<git log example2.png>)
![git log -p -- example.txt](<git log example3.png>)
![git log --oneline -- example.txt](<git log online example.png>)
## How many commits modified this file?
3
## 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
![git blame example.txt](<git blame.png>)
![git blame -L 1,5 example.txt](<git balme 1.png>)
![git blame -e example.txt](<git balme 2.png>)
## Who changed each line of the file?
solomon, Murali
## 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 changes in the file.

View File

@ -1,5 +1,59 @@
Step 1 : Create new empty repository
- Visited the Git-Training-Hub organization on Git Comorin
- Created a new repository named as git-practice-Solomon
- Created with no README, no .gitignore and no license
- ![]
## 1. What is Git and Version Control
Git is a Version Control System (VCS).
Tracks changes in files, helping teamwork without conflicts.
Problem it solves:
Multiple people edit the same file → overwrite problem.
Old version ku back poganum na kashtam.
Example:
School project / Google Docs → many people editing the same file
![alt text](git_version.png)
## 2. Installing Git & Configuring User Info
![alt text](git_config.png)
## 3. Initializing a Repository
![alt text](git_init.png)
![alt text](git_status.png)
## 4. Working Directory, Staging, and Commits
![alt text](git_commit.png)
## 5. Adding & Committing Files
![alt text](git_commit.png)
## 6. Viewing Commit Logs & Diffs
![alt text](git_log_oneline.png)
![alt text](git_log.png)
![alt text](git_diff.png)
## 7. Creating & Switching Branches
![alt text](git_checkout.png)
![alt text](git_branch.png)
![alt text](git_switch.png)
## 8. Cloning a Remote Repository
![alt text](git_clone.png)
## 9. Adding & Managing Remotes
![alt text](git_remote.png)
## 10. Pushing & Pulling Changes
![alt text](git_pull.png)
![alt text](git_push.png)
## 11. Ignoring Files with .gitignore
![alt text](git status before ignore.png)
![alt text](gitignore.png)

0
README.md Normal file
View File

4
example.txt Normal file
View File

@ -0,0 +1,4 @@
Hello World
Today Tech Tharsday
Mark my words
lalaa

BIN
git balme 1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
git balme 2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
git blame.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
git log example.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
git log example2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
git log example3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
git log online example.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
git_branch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
git_checkout.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
git_clone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
git_config.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 60 KiB

BIN
git_log.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
git_log_oneline.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Submodule git_practice/git-practice-solomon added at 26314c765c

BIN
git_pull.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
git_push.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
git_remote.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
git_switch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
gitignore.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -1,2 +1,3 @@
-This is my first note
-Hello everyone
hello