3 Commits

Author SHA1 Message Date
1642934a30 Add .gitignore to ignore secret files 2025-09-04 09:59:51 +05:30
f17209e24d Added screenshot 2025-09-01 12:12:22 +05:30
07fa763c66 added aasignment 2025-09-01 12:09:37 +05:30
20 changed files with 18 additions and 55 deletions

2
.gitignore vendored
View File

@@ -1 +1 @@
secret.txt
secert.txt

View File

@@ -1,30 +0,0 @@
## 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,4 +1,11 @@
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).
@@ -15,33 +22,31 @@ 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_version.png)
![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)
![alt text](git_status.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_log_oneline.png)
![alt text](git_diff.png)
![alt text](git_diff_commit1_commit2.png)
## 7. Creating & Switching Branches
![alt text](git_checkout.png)
![alt text](git_branch.png)
![alt text](git_switch.png)
![alt text](git_branch.png)
![alt text](git_checkout.png)
## 8. Cloning a Remote Repository
![alt text](git_clone.png)
@@ -50,10 +55,3 @@ Example:
![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)

View File

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

View File

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