Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create a project using github

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the knowledge of "how to use github to create a project". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The web page part 1. Open your home page and click "New repository" to create a remote warehouse. two。 Fill in the information

Local part of the premise:

Download git and install, https://git-scm.com/downloads.

After the installation is successful, right-click "git base here" in the project you want to upload

Step 1: initialize the warehouse git init

Step 2: add files to the local warehouse

Usually, batch upload will be selected for the first time.

Git add.

The last time a single file was used, it was followed by a file name such as here is git add a.py.

Step 3: add file description information git commit-m "first commit"

Step 4: link the remote warehouse and create the main branch

Click "Clone or Download" to get the address of your git project and replace my address below (https://github.com/muzico425/python_test.git)) with your own.

Git remote add origin https://github.com/muzico425/python_test.git

Step 5: connect the changes in the local warehouse to the remote warehouse main branch git pull origin master

Step 6: download the remote warehouse README.md to the local

There is a README.md file on github that has not been downloaded. You need to perform this, and if not, you can skip this step.

Git pull-rebase origin master

Step 6: push the files from the local warehouse to the remote warehouse git push-u origin master

All right, let's refresh the page and see that our project has been uploaded successfully.

Summary

I can't remember how many steps will pop up a login box, just enter the account number and password of github to confirm it, and put a picture of the whole process below.

This is the end of "how to create a project using github". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report