github project upload / delete items / add members

A registered github account

github URL https://github.com/

The next step

Then, you will receive an email mailbox, a mailbox verified on the line

 

Second, create a github repository

 Log in to your github, on the right you can see the home page shown below (I already created a project, display items have not created a bit different, but all the buttons)

The next step

Created, as shown below

 

 Third, the configuration of SSH keys

First install git (Download https://www.git-scm.com/download/ )

Create a new folder (e.g. workspace, used to store all the items you), (which may be directly in the workspace file folder right as shown) in the workspace folder git bash here

The next step

Next, operation on GitHub, found Setting (shown below)

Next (Note that this stuff needs to copy the above requirements, the number of up second graph)

 

Next, enter your password

Well, things will be able to see the figure below

your mailbox

 

Four, git user name and mailbox configuration

 

 

Fifth, upload your project

On github, find abc warehouse just created

 

Operation on git

git clone "Copy URL"

At this time in the workspace folder inside the folder there abc

Abc into the folder, you can enter cd abc in git inside, you can also directly open abc folder, right git bash here

 

Then your project on the abc folder below the line

 

The following upload to github above

git status can see what files you modified (marked out in red below)

git add .

 

git commit -m "Here you write notes this update, such as updating what function or what files"

 

 git push

As shown in the figure, there are master -> master when you upload a success

When git push might ask you to enter your user name and password (as shown below)

 

当你上传成功了,就可以去github上面看一下,你新建的文件都上传上去了,如下图所示

 

每次你修改了你的项目(abc文件里面的东西修改了,这里的修改包括修改代码、添加文件、删除文件),都需要执行这几步命令(如下所示),在github上面更新

git add .

git commit -m "备注"

git push

上面的git add . 一定不要忘记有个点

git add . 和 git commit -m "备注" , 可以合并成为git commit -a -m "备注"

 

另外还有一个常用的git命令

git pull 更新本地的代码(多人合作管理一个仓库的时候需要用到,别人push了代码,那你就需要pull一下,把别人写的代码更新到本地来)

下面会介绍怎么给一个项目添加其他人来一起管理仓库

 

这里附一张git命令图

 

六、添加其他人一起管理abc仓库

 

下一步

下一步

 

下面这张图是合作者打开链接后的图

对方同意了之后,下图所示

 

七、删除仓库

这里演示删除abc仓库

 

就可以看到下图所示

往下滚动页面,找到下图所示

下一步

Guess you like

Origin blog.csdn.net/wteruiycbqqvwt/article/details/93721596