21 Commits

Author SHA1 Message Date
2912e22546 Added 1 to 10 numbers 2025-09-10 21:03:45 +05:30
63e67802a8 Added images for Viewing File History with Blame 2025-09-10 17:26:46 +05:30
36e4019ced Added updated screenshots for Viewing File History 2025-09-10 16:31:15 +05:30
1da6f094d0 Added updated images for Viewing File History 2025-09-10 16:19:59 +05:30
19a309af94 Added screenshots for Viewing File History 2025-09-10 16:16:39 +05:30
24faea97fe Added images for Viewing File History 2025-09-10 16:09:37 +05:30
6be5cb4f32 Added discription for git log --oneline --<filename> 2025-09-10 15:32:18 +05:30
df394da8e2 Added discription for git log -p --filename 2025-09-10 15:28:48 +05:30
7e2c7a9396 Added discription for git log -- example.txt 2025-09-10 15:19:55 +05:30
e2914f3b70 Updated the readme file 2025-09-04 11:50:53 +05:30
d0c1a1730e Added readme md file 2025-09-04 10:48:22 +05:30
6f6d069366 added git status before gitignore image 2025-09-02 17:08:42 +05:30
4f19dbc47a Update gitassignment.md 2025-09-02 11:04:00 +00:00
3618c2e693 added heading for gitignore 2025-09-02 16:32:06 +05:30
8f87fd7888 added Working Directory and Staging 2025-09-02 16:07:44 +05:30
2e533c8cf6 added git push and gitignore 2025-09-02 16:03:32 +05:30
6ba0313795 added Working Directory and Staging image 2025-09-02 15:45:38 +05:30
d16da988cd Add .gitignore to ignore secret.txt 2025-08-26 17:03:00 +05:30
3f66206d09 Add images and update gitassignment.md 2025-08-23 10:40:10 +05:30
cdd1970950 added heading 2025-08-20 18:12:18 +05:30
06dcb8f553 add heading 2025-08-20 17:56:09 +05:30
26 changed files with 136 additions and 3 deletions

2
.gitignore vendored Normal file
View File

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

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

@ -0,0 +1,47 @@
## Viewing File History
## 1. git log -- assignment.txt
![alt text](<git log-p--filename.png>)
## 2. git log -p -- assignment.txt
![alt text](<git log--filename.png>)
![alt text](<git log-p--filename1.png>)
## 3. git log --oneline -- assignment.txt
![alt text](<git log--oneline--filename.png>)
## How many commits modified this file?
3 commits
## What differences do you see when adding the -p option?
Shows detailed changes for each commit in the file.
## Viewing File History with Blame
## 1. git blame assignment.txt
![alt text](<git blame assignment.png>)
## 2. git blame -L 1,5 assignment.txt
![alt text](<git blame -L 1,5 assignment.png>)
## 3. git blame assignment.txt
![alt text](<git blame -e assignment.png>)
## Who changed each line of the file?
Renejit
## 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.

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

14
README.md Normal file
View File

@ -0,0 +1,14 @@
## why Git is not tracking this case-only rename?
Windows/macOS filesystems are case-insensitive they treat both names as the same file.So when you rename only by case, the OS reports no change.
## Provide the correct steps to make Git recognize and commit the rename:
force Rename command : git mv -f readme.md Readme.md
## Explain the underlying reason why this happens (hint: think about how Git interacts with different operating systems and filesystems).
1. Git was designed for Linux, where filesystems are case-sensitive.
2. Windows/macOS filesystems are case-insensitive they treat both names as the same file.So when you rename only by case, the OS reports no change.

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

9
assignment.txt Normal file
View File

@ -0,0 +1,9 @@
git log -- <filename> :
shows the commmit message for a specific file.
git log -p --<filename> :
shows line by line changes for each commmit in a specific file
git log --oneline --<filename> :
shows commit history in short form for the specific file

BIN
create new branch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -1,3 +1,10 @@
hello
welcome
adgsjkdh
1
3
3
4
5
6
7
8
9
10

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
git blame -e assignment.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
git blame assignment.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
git branch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
git checkout.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

BIN
git clone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
git log--filename.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
git log-p--filename.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
git log-p--filename1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
git pull.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
git push.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
git switch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

1
git-practice-Renejit Submodule

Submodule git-practice-Renejit added at 8ee5230729

View File

@ -1,6 +1,22 @@
## Git Assignment
## 1.Git Version Check
## what is git and version control
Version Control:
Version control is a system used to record and manage changes made to files or code over time. It helps you to:
Keep track of modifications: Identify what was changed, when it was changed, and who made the changes.
Recover from errors: Restore previous versions if something goes wrong.
Git is a type of distributed version control system. Enable to work even without an internet
connection and provide powerful tools for managing code changes.
## Real-life example where multiple people edit the same file:
In a project many person can work a same project we can track who is making what changes are made so we use git to track the changes.
## Why is version control better than emailing files back and forth?
In email we can`t tarck the changes in the code.But in git we track the changes like who make it,time and old version of code.
![alt text](<git version.png>)
## 2. Installing Git & Configuring User Info
@ -28,3 +44,40 @@
![alt text](<git diff commit1 commit 2.png>)
![alt text](<git diff.png>)
![alt text](<git log oneline.png>)
## 7. Creating & Switching Branches
![alt text](<git branch.png>)
![alt text](<create new branch.png>)
![alt text](<git checkout.png>)
![alt text](<git switch.png>)
## 8 Git clone
![alt text](<git clone.png>)
## 9. Adding & Managing Remotes
![alt text](<Adding & Managing Remotes.png>)
## 10. Pushing & Pulling Changes
![alt text](<git pull.png>)
![alt text](<git push.png>)
## 11. Ignoring Files with .gitignore
![alt text](<Ignoring Files with .gitignore.png>)
Working Directory and staging:
![alt text](<Working Directory and Staging.png>)
Git status Before gitignore
![alt text](<git status before gitignore.png>)
Git status after gitignore
![alt text](<git status after gitignore.png>)