Date: 2020-10-24
Author: 19th WY
Tag: Use of Git and Github
1. Click the fork warehouse first, and the project is now under your account
- You can see the address in the download
2. Right-click in the local folder and select Git bash here
3. Clone the warehouse locally and create a new branch
- Clone to local
- Open folder
- New branch-wy
4. Put homework
- Open the cloned project file, find the corresponding folder such as: Recruiting new small assignments, create a new folder named after yourself, and put the assignments in it.
5. Transfer homework
-
Execute the git status command to view the status of the local warehouse:
-
Execute the command: git add --all
submit all files to the local warehouse -
Continue to check the status, it can be seen that all the files in the local warehouse have been submitted
-
Use git commit -m "menu"
to submit the project to, where -m is followed by a description of the submitted content
-
Execute the command: git remote add origin https://github.com/SHEReunice/devAssignments.git
to associate the github warehouse with our local warehouse -
Execution command:
Submit the local warehouse code to github
git push -u origin wy
-
After completing the modification and submitting to the remote warehouse, go back to your own branch and click the green Compare & pull request button next to it
The assignment is submitted successfully~