| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
- Linux
- MyAnimeList
- GIT
- noob
- API
- Anime
- .gitignore
- SCV
- project
- MySQL
- Django
- github
- directories
- Methods
- pandas
- workbench
- forks
- basics
- crawler
- Classes
- JSON
- cached
- ansible
- python
- commands
- strings
- Jupyter Notebook
- Filecoin
- Blockchain
- DATABASE
- Today
- Total
제니 블로그
What is Git? 본문
Git is a software that allows people to keep track of changes made to a project over time.
- This works by recording changes they make to a project, stores changes, then allows them to reference them as needed
git init - init meaning initialize, command setting up all the tools Git needs to being tracking changes made to the project.
Git Workflow can be said to have 3 parts
- Working Directory → where it does all the work : creating, editing, deleting and organizing files
- Staging Area → list changes made to the working directory
- Repository → where git permanently stores changes as different versions of the project
Workflow :
- Edit files in the working directory
- Adding files to the staging area
- Saving changes to a Git repository
Save changes with a commit



→ git add = add file for git to start tracking it
→ git diff = check differences between the working directory and the staging area
→ git commit = last step in git workflow
- Commit permanently stores changes from the staging area inside the repository
- Need the -m before the message

- Must be quotation marks
- Written in the present tense
- Should be brief

→ git log = refer back to an earlier version of a project - commits are stored chronologically in the repository and can be viewed with log


Git is a tool used for source code management. It is free and open-source version control system and it can handle large projects efficiently. Using git and github should be one of the basics that DevOps should be learning.
'Building Blocks' 카테고리의 다른 글
| Linux - Simple Commands and Navigation Part 1 (0) | 2023.02.17 |
|---|---|
| Basics of Github - Concepts (0) | 2023.02.16 |
| Directories in Linux (0) | 2023.02.16 |
| Basic Scripting (0) | 2023.02.15 |
| Search Algorithms (Linear, Binary) (0) | 2023.02.15 |