Compare commits
11 Commits
master
...
feature/le
Author | SHA1 | Date | |
---|---|---|---|
4f19dbc47a | |||
3618c2e693 | |||
8f87fd7888 | |||
2e533c8cf6 | |||
6ba0313795 | |||
d16da988cd | |||
3f66206d09 | |||
cdd1970950 | |||
06dcb8f553 | |||
780d737326 | |||
9078ab1a83 |
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
secret.txt
|
||||||
|
secretfile.txt
|
BIN
Adding & Managing Remotes.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
Ignoring Files with .gitignore.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
Working Directory and Staging.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
add and commit.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
create new branch.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
git branch.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
git checkout.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
git clone.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
git config.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
git diff commit1 commit 2.png
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
git diff.png
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
git installation.png
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
git log oneline.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
git log.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
git pull.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
git push.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
git status after gitignore.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
git status before gitignore.png
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
git switch.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
git version.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
@ -1,7 +1,83 @@
|
|||||||
Version Control:
|
## Git Assignment
|
||||||
|
## 1.Git Version Check
|
||||||
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.
|
## what is git and version control
|
||||||
|
Version Control:
|
||||||
|
|
||||||
Recover from errors: Restore previous versions if something goes wrong.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 2. Installing Git & Configuring User Info
|
||||||
|
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## 3. Initializing a Repository
|
||||||
|
|
||||||
|

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

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

|
||||||
|

|
||||||
|
|
||||||
|
## 6. Viewing Commit Logs & Diffs
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## 7. Creating & Switching Branches
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## 8 Git clone
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 9. Adding & Managing Remotes
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 10. Pushing & Pulling Changes
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## 11. Ignoring Files with .gitignore
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Working Directory and staging:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Git status Before gitignore
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Git status after gitignore
|
||||||
|
|
||||||
|

|
BIN
initializing rep.png
Normal file
After Width: | Height: | Size: 18 KiB |