73 lines
1.2 KiB
Markdown
73 lines
1.2 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>
|
|
|
|

|
|
|
|
## Exploring Branches
|
|
|
|

|
|

|
|
|
|
## Cloning a Repository
|
|
|
|

|
|
|
|
## Pull code from branch
|
|
|
|

|
|
|
|

|
|
|
|
## Checking Remote
|