Github clone repository-create branch-submit job

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
    Insert picture description here
2. Right-click in the local folder and select Git bash here

Insert picture description here

3. Clone the warehouse locally and create a new branch
  • Clone to local
    Insert picture description here
  • Open folder
    Insert picture description here
  • New branch-wy
    Insert picture description here
    Insert picture description here
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.
    Insert picture description here
5. Transfer homework
  • Execute the git status command to view the status of the local warehouse:
    Insert picture description here

  • 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
    Insert picture description here

  • Use git commit -m "menu"
    to submit the project to, where -m is followed by a description of the submitted content
    Insert picture description here

  • 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
    Insert picture description here

  • 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~

Guess you like

Origin blog.csdn.net/cyl_csdn_1/article/details/109265336