When using Git, often use commit -m to push to the repository? What is the repository?

Hello, I am Suoqi who likes to explore (impromptu little Suoqi). In git, you may often do git add, git commit -m, git push, git pull and other operations... This is the first article for everyone Expand the knowledge of git, and will often expand it in the future, because it is an indispensable and important part of the code path~

  • Repository is a core concept in Git. It is a place for storing project code, recording project history and managing code changes. The repository can be a local repository (Local Repository) or a remote repository (Remote Repository).

  • Creating a repository on your local computer is as simple as running a command in the project folder  git init . This will create a .git subdirectory containing Git history and all version information. This repository will record all changes, commits, branches, etc. in the project.

Guess you like

Origin blog.csdn.net/m0_64880608/article/details/130733575