Insert code slice here ## Add your homework folder and files I next Fork this repository: github.com/aiyuechuang…

Fork Ing.Use Git to download:Run the following command to download:

git clone [email protected]:AndersonHJB/Git_Study.git
Copy the code

A folder with the same name as the repository will appear inside the local folder:Next, under the downloaded Git_Study folder, create your own course folder. For example, I am: AI Yuechuang Student, so I create the student folder: 20210605-AI Yuechuang

  • 20210605: Your registration time
  • What’s your name

For example, if I take a course called Python3 web crawler, I will create the code for Python web crawler

After that, put the code of each lesson in the corresponding folder of each lesson.

For example: my first class, Python3 crawler fundamentals. I’ll create the following folder:

It is recommended to add the following code each time:README.mdThis is a file where you write down your problems or other problems.

This file is a Markdown file. Suggest to learn to look: www.runoob.com/markdown/md…

Software used: Typora.io /

So the assignment for next time is like this:

If you’re taking other courses, create other courses:

In the process, why don’t I help you create folders? Because a lot of times you’re going to have to learn how to do it, maybe I’m going to do it for a few seconds, but you’re going to have to do it for a long time, and that’s a learning process.

Add Fork to the address of the original repository

Step 1 Go to the directory of the local warehouse.

Run git remote -v to check the path of your remote repository

If only the above 2 lines indicate that you have not set upstream. In general, set up upstream once and do not need to repeat.

Step 3. Add upstream warehouses

Execute command:

git remote add upstream https://github.com/aiyuechuang/Git_Study.git
Copy the code

Set my test repository as your upstream.

After this command is executed, no information is returned. So execute the command againgit remote -vCheck whether the operation is successful.

PS: I updated the file in the original repository of this test:

Create an sh file that writes the following:

git status
git add .
git commit . -m "update"
#git status
git push
git fetch upstream
git checkout main
git merge --no-edit upstream/main
# git commit
git push
Copy the code

Just put the files in your project folder.

Then from the git command line type:

sh aiyc_code_push.sh
Copy the code

Finally, it is submitted to the main warehouse

Just stop here and let me know. After every class, if you want the code I wrote, just run it:

sh aiyc_code_push.sh
Copy the code

B: Ok, you can see it locally. You can also see it on GitHub.