How to upload your own local project to Github through Git GUI

githud is something that a programmer will use when he grows up. Not to mention that many excellent open source frameworks are released on it. It is very convenient to manage your own demos, and it is very smooth to use. What really made me decide to use github was because of two misoperations, I deleted all my learning demos, and because the data was too large, it was completely deleted. I used data recovery software, but it didn't work. The data is disorganized, and the other time is due to its own solid state damage, and everything is gone. Finally, I made up my mind to study the use of github.

For the above reasons, it took a day to study github, which is the result of a day's learning.


1. As for how to register and install the git client, please refer to the following blog: http://blog.csdn.net/vipzjyno1/article/details/22098621

Through the command line, the above blog also said that it is very clear, the following is how to upload your own local files to Github through the Git GUI.


2. Upload your own local files to Github

1) Create a .git repository 

    In your own local file (any location), right-click ==> select Git GUI Here, the following box will pop up, select create new Repository, that is, at the arrow, I have created it myself in the red circle.

After clicking create new Repository, a pop-up window will appear for you to enter a folder, just enter a folder name directly. Click Create, then open the Git folder and there is a .git folder in it, but some people can't see it, this is because it is hidden by default, you can display the files in your computer by yourself, not self-Baidu. At this point, this Git folder is your project repository. Just put the items you need to upload in this folder.




After clicking Create, a visualization window will pop up: Click Remote--"Add...



After the following box pops up, enter your Github username (shanerou is my github name) and the address you need to put your local project in the Github repository. For example, I created a repository named Test on Github, and then add As follows, click Create, and a success box pops up to represent successful creation




Put one of my demos in the Git folder: SD_SQList2



Follow these steps:


When you click on the third step, you will see a line of information in the Initial Commit Message box

Click the fourth step, that is, after submitting the command, the cached file on the left is submitted, and the cached file disappears. At this time, click the fifth step. After clicking the fifth step, the following box appears:




Enter your Github username and password:




Click to upload: the following pop-up box appears, indicating that the upload is successful



Then go to your Github and you will see the following dome:




The upload is now over.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324681754&siteId=291194637
Recommended