Git uses the command line to pull projects and submit code

1. Pull the project

1. Open GitHub, select the project, and copy the project address

2. Create a new project folder on the computer, right-click in the folder --> Git Bash Here, open the Git command line

3. Enter git clone + project address

git clone [address]

4. Pull successfully, you can open the project with the compiler

2. Submit the code

1. Pull the remote code and resolve the conflict

git pull

2. Open the terminal in the project root directory, check the currently modified file, and confirm that it is correct

git status

3. Add the modified file to the local staging area

git add .

 4. Submit the file in the temporary storage area to the local warehouse, and fill in the remarks of the submission in [message]

git commit -m [message]

5. Submit the code to the remote warehouse

git push

Guess you like

Origin blog.csdn.net/marsur/article/details/127424105