Notice
Recent Posts
Recent Comments
Link
«   2026/04   »
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
Archives
Today
Total
관리 메뉴

제니 블로그

What is Git? 본문

Building Blocks

What is Git?

jennystar 2023. 2. 16. 01:17

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 

 

  1. Working Directory → where it does all the work : creating, editing, deleting and organizing files 
  2. Staging Area → list changes made to the working directory 
  3. Repository → where git permanently stores changes as different versions of the project 

Workflow : 

 

  1. Edit files in the working directory
  2. Adding files to the staging area
  3. Saving changes to a Git repository 

Save changes with a commit

Basics of how it works
git status = checking status of the changes of the contents
Untracked = Git sees the file but has not started tracking changes

→ 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


In summary

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