How to create a Github account and upload a local project to GitHub?

How will local project uploaded to GitHub

 

First you need a github account, all have not already registered to go to it!

https://github.com/

We need to install git using git tool, download address given here, can be installed directly after downloading all the way:

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

1. Go to Github home page, click New repository to create a new project

 2. Fill in the appropriate information to create click 

Repository name: warehouse Name

Description (optional): DESCRIPTION The warehouse

Public, Private: warehouse permission (publicly shared, private or designated collaborators)

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

gitignore: warehouse type does not require versioning, and generate the corresponding files .gitignore

license: type of certificate, generates a corresponding file LICENSE

 

3. Click the Clone or dowload will be an address, copy the address of the secondary.

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

5. Now enter the following code (critical step), the above github cloned into a local repository

git clone https://github.com/CKTim/BlueTooth.git(https://github.com/CKTim/BlueTooth.git replaced before you copy the address)

 6.这个步骤以后你的本地项目文件夹下面就会多出个文件夹,该文件夹名即为你github上面的项目名,如图我多出了个Test文件夹,我们把本地项目文件夹下的所有文件(除了新多出的那个文件夹不用),其余都复制到那个新多出的文件夹下,

78.接着继7.继续输入命令 cd Test,进入Test文件夹

9.接下来依次输入以下代码即可完成其他剩余操作:

git add .        (注:别忘记后面的.,此操作是把Test文件夹下面的文件都添加进来)

git commit  -m  "提交信息"  (注:“提交信息”里面换成你需要,如“first commit”)

git push -u origin master   (注:此操作目的是把本地仓库push到github上面,此步骤需要你输入帐号和密码)

 

种下梧桐树,引得凤凰来,你若盛开,蝴蝶自来,你若精彩,天自安排!

Guess you like

Origin www.cnblogs.com/Yanjy-OnlyOne/p/11520675.html