The download address of git: https://git-scm.com/download
After installing git
Right-click on the desktop to see two git shortcuts.
You need to configure git first, that is, you need to configure the user name and user mailbox
Then introduce the basic instructions of git, first create an empty folder, I created the test2 folder here
Enter the folder, right click to open the Git bash window
1. Execute the command git init
The hidden folder .git appears, indicating that the downloaded git tool is fine. This step is to initialize the git warehouse.
The status of the file existence is shown in the figure below
If it is a newly created file, it is in an untracked state, and if it is a modified file, it is called an unstaged state.
If the file is placed in the temporary storage area, it is called the temporary status.
Let's first create a file
The command to create a file is consistent with the touch file name under the linux system
git status: View the status of commits.
git add: Modify one or more files to the temporary storage area, generally use git add to submit all files to the temporary storage area.
git commit: Submit the content in the temporary storage area to the local warehouse
Command form: git commit -m 'comment content'
git log: View commit log information
You can then modify the contents of the file by executing
1.git add .
2.git commit -m "file01change"
View submission status