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 upload a local project to GitHub

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces "how to upload local projects to GitHub". In daily operation, I believe many people have doubts about how to upload local projects to GitHub. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to upload local projects to GitHub"! Next, please follow the editor to study!

First of all, you need a github account, so if you don't have it yet, sign up first!

Https://github.com/

To use git, you need to install the git tool first. The download address is given here, and you can install it all the way after download:

Https://git-for-windows.github.io/

1. Go to the home page of Github and click New repository to create a new project

two。 Click create after filling in the relevant information.

Repository name: warehouse name

Description (optional): warehouse description introduction

Public, Private: repository permissions (public sharing, private or designated collaborator)

Initialize this repository with a README: add a README.md

Gitignore: the type of repository that does not require version management, corresponding to the generated file. Gitignore

License: certificate type, corresponding to the generated file LICENSE

3. Click Clone or dowload and an address will appear. Copy is an alternate address.

4. Next to the local operation, first right-click your project, if you installed git successfully, right-click will appear two new options, respectively, Git Gui Here,Git Bash Here, here we choose Git Bash Here, enter the following interface, Test_Bluetooth is my project name.

5. Next, enter the following code (key steps) to clone the warehouse on github to the local

Replace git clone https://github.com/CKTim/BlueTooth.git(https://github.com/CKTim/BlueTooth.git with the address you copied earlier)

6. After this step, there will be an extra folder under your local project folder. The folder name is the project name above your github. As shown in the picture, I have an extra Test folder. We copy all the files under the local project folder (except for the new extra folder) and copy all the rest to that new extra folder.

7. Then continue to enter the command cd Test and enter the Test folder

8. Then enter the following code in turn to complete the rest of the operation:

Git add. (note: don't forget the following. This action is to add all the files under the Test folder)

Git commit-m "submission information" (Note: replace "submission information" with what you need, such as "first commit")

Git push-u origin master (Note: the purpose of this operation is to push the local warehouse to github, this step requires you to enter your account number and password)

At this point, the study on "how to upload local projects to GitHub" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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

Development

Wechat

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

12
Report