77 lines
1.3 KiB
Markdown
77 lines
1.3 KiB
Markdown
## Git Assignment
|
|
|
|
## 1. What is Git and Version Control
|
|
|
|
1. Git helps multiple people work on the same files without losing each other's changes or creating a mess.
|
|
2. Four students writing a group essay where each person writes different sections, but sometimes they need to edit the same paragraphs.
|
|
3. Email creates confusion with multiple file versions and lost work, while Git tracks every change and lets everyone work together safely.
|
|
|
|
## 2. Installing Git & Configuring User Info
|
|
|
|
## 
|
|
|
|
3. Initializing a Repository
|
|
|
|

|
|
|
|
---
|
|
|
|
4. Working Directory, Staging, and Commits
|
|
|
|

|
|
|
|
---
|
|
|
|

|
|
|
|
---
|
|
|
|

|
|
|
|
--
|
|
|
|
5. Adding & Committing Files
|
|
|
|
## 
|
|
|
|

|
|
|
|
## Git Log (oneline)
|
|
|
|
## 
|
|
|
|
6. Viewing Commit Logs & Diffs
|
|
|
|
## Git Log (graph)
|
|
|
|
## 
|
|
|
|
## Git Diff
|
|
|
|
## 
|
|
|
|
## git diff <commit1> <commit2>
|
|
|
|

|
|
|
|
## 7.Exploring Branches
|
|
|
|

|
|

|
|
|
|
## 8.Cloning a Repository
|
|
|
|

|
|
|
|
## 9.Pull code from branch
|
|
|
|

|
|
|
|

|
|
|
|
## 10.Checking Remote
|
|
|
|

|
|
|
|
## 11.Ignore
|