Git code submission---git actual combat (4)

Code submission

 

# Submit the temporary storage area to the warehouse area
$ git commit -m [message]

Create a new file

Add to the staging area first, then submit

# Submit the specified files in the temporary storage area to the warehouse area
$ git commit [file1] [file2] ... -m [message]

# Submit the changes in the work area since the last commit, directly to the warehouse area
$ git commit -a

# Display all diff information when submitting
$ git commit -v

# Combine add and commit into one step

For files that have been added and modified by add
$ git commit -am'message'

 

 

 

Guess you like

Origin blog.csdn.net/liuhao9999/article/details/112666820