ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [git] Basics
    coding for food 2022. 8. 31. 23:49
    1. Version control is a tool developers use to keep changes across multiple software versions organized.
    2. git init : Creates an empty git repository.
    3. git status : Tells you whether you have untracked or modified files not yet in the staging area.
    4. git add <file> : Adds a file to the staging area. You can add multiple files by listing them (separated by spaces) or add all the files at once by using git add .
    5. git commit -m “logical set of changes” : Makes a new snapshot of your code, along with any recent changes.
    6. Commit messages should be short, descriptive, and encompass a logical set of changes.
    7. git log : Shows all the commit logs.
    8. git diff <commit_id_1> <commit_id_2> : Shows differences in files between commits.
Designed by Tistory.