全世界最强的网站,但是你根本不会用?

玄离199
4 Nov 202303:59

Summary

TLDR这个视频是关于GitHub的基础教程,专为初学者和非程序员设计。视频解释了GitHub是世界上最大的代码托管和协作平台,主要用于保存软件源代码。介绍了开源和私有代码的概念,并强调了开源软件对互联网发展的重要性。此外,视频还详细讲解了GitHub的常用功能模块,包括代码库、提交消息、项目介绍、发布版本等,并如何利用这些功能查找、下载软件和参与项目。最后,鼓励观众参与开源项目的开发,为GitHub社区做出贡献。这是一系列教程的第二部分,旨在帮助新手理解和使用GitHub。

Takeaways

  • 😀 Github是一个最大的代码托管和协作平台,主要用于保存程序员编写的软件源代码。
  • 📝 Github上源代码分为完全开源和私有两类,开源代码可以免费查看和使用。
  • 🔒 私有源代码只有上传者和被授权的用户可以访问。
  • 📈 Github基于版本控制工具Git建立和管理代码。
  • 📋 每个Github项目中,代码库显示项目的所有源代码,README文件展示项目的主要信息。
  • 🎁 Releases模块提供打包好的软件可直接下载使用。
  • ⭐ Star和Fork按钮可以收藏项目和复制项目代码到自己的页面。
  • 🔍 搜索模块可在Github全局搜索代码项目。
  • 💬 Issues功能可用于给项目作者提问或反馈问题。
  • 👥 开源项目可以自由参与,贡献代码和讨论问题。

Q & A

  • GitHub 的主要作用是什么?

    -GitHub 的主要作用是保存和托管程序员编写的代码,并为代码协作提供平台。它是世界上最大的代码托管和协作平台。

  • 什么是开源代码?

    -开源代码指代码完全对外公开,所有人都可以查看、下载和在一定规则下使用的代码。比如著名的 Linux 和 Android 都属于开源类型。

  • 什么是私有代码?

    -私有代码指只有上传者和指定的用户才能访问的代码。这就是 GitHub 的代码库。

  • commit 信息有什么作用?

    -commit 信息就是代码作者在最后更新代码时的备注,可以让查看代码的人快速了解每次更新的内容。

  • 项目的 Releases 模块有什么作用?

    -Releases 模块里面usually 是项目作者发布的软件打包文件,对不同系统和版本进行了打包,用户可以直接下载使用。

  • 项目的 Stars 数有什么意义?

    -Stars 数可以反映一个项目的热度和受欢迎程度,如果一个项目 Stars 数很高,说明它受到广泛关注。

  • fork 一个项目有什么作用?

    -fork 可以把别人的项目完整地复制到自己的账户下,然后可以在此基础上进行修改、扩展等操作。

  • issues 模块有什么作用?

    -issues 模块可以让用户反馈使用中的问题或者提出改进建议,供项目开发者参考。

  • 为什么要给项目点 Star?

    -给项目点 Star 可以表达对项目的兴趣和支持,也可以让更多人发现该项目。

  • 如何参与开源项目的开发?

    -可以 fork 项目后修改提交 Pull Request,或者在 issues 中反馈问题和建议,逐步成为项目的贡献者。

Outlines

00:00

😊 介绍 GitHub 的基本概念

本段主要介绍了 GitHub 的基本概念,包括它是世界最大的代码托管和协作平台,用于保存程序员编写的软件源代码。源代码可以是完全开放的,也可以是私有的,只有指定的用户可以访问。文章还举了开源软件的例子,如 Linux 和 Android。

Mindmap

Keywords

💡开源

开源指计算机程序的源代码对所有用户开放,用户可以自由使用、修改和再分发软件。视频中提到开源软件是计算机行业的宝藏,大多数我们生活中使用的软件都是基于开源项目的二次开发。

💡代码托管平台

代码托管平台用于存放和管理程序员编写的源代码。视频提到 GitHub 是世界最大的代码托管和协作平台,它的最大作用就是保存程序员编写的软件源代码。

💡版本控制

版本控制让程序员可以对代码进行修改、管理不同版本。视频中提到 GitHub 的创建基于版本控制工具 Git 的理念。

💡仓库

在 GitHub 上,每个项目都有一个代码仓库,里面包含了项目的所有源代码文件。视频screenshot展示了代码仓库的界面。

💡提交

提交(commit)指程序员对代码的更新提交,并写下备注信息。视频中每个源代码文件后面都有 commit message,标明最后一次提交的说明。

💡发布版

发布版指项目开发者发布的正式版本软件包,视频中提到可以直接点击下载使用。发布版既便于使用又体现开源精神。

💡关注

用户可以通过点击星标按钮来关注自己感兴趣的 GitHub 项目。视频中提到星标数量可以反映一个项目的热度。

💡复刻

复刻(fork)可以直接复制别人 GitHub 项目的全部源码到自己的首页,无需通知作者,视频称之为“取人代码就这么简单”。

💡议题

用户可以通过议题功能向项目作者提出反馈、问题、建议等,比如报告bug或请求新增功能,有助于作者改进项目。

💡协作

GitHub 实现了代码托管的同时极大地方便了开发者之间的协作交流,视频中体现了开源和信息共享的精神。

Highlights

GitHub介绍为世界上最大的代码托管和协作平台。

解释GitHub在保存和分享软件源代码中的作用。

GitHub上开源和私有源代码之间的区别。

开源对互联网和软件行业发展的重要性。

GitHub常见功能模块及其用途概述。

如何导航和使用GitHub界面,包括查看和下载代码。

提交消息和更新时间在评估项目维护中的重要性。

README文件在理解项目细节中的重要性。

发布版本在提供软件版本访问中的作用。

GitHub的项目摘要功能介绍,包括星标和分叉。

GitHub搜索功能的介绍,用于查找项目和资源。

问题的重要性,用于反馈、报告错误和社区讨论。

鼓励参与讨论并尊重GitHub社区中的其他人。

预览未来内容关于参与开源项目开发。

结束语和鼓励进一步探索GitHub。

Transcripts

play00:00

Github has many excellent open source projects and useful software.

play00:03

But unfortunately, many people don't know what it is.

play00:05

also won't use

play00:06

So in this video, let's talk about what github is.

play00:09

And as a white whoring monster you need to know the function

play00:12

This video is the second in a series.

play00:14

If interested

play00:15

Everyone can order a collection.

play00:16

If you don't know how to access GitHub

play00:18

You can view my previous video.

play00:19

The content of this video is more basic

play00:21

Not suitable for programmers with years of development experience to watch

play00:23

If there is no mistake

play00:24

Please discuss and correct rationally

play00:27

First, let's talk about what GitHub is.

play00:29

GitHub is the world's largest code hosting and collaboration platform.

play00:32

The biggest role is to save the software source code written by programmers.

play00:35

Anyone can upload their own code.

play00:37

Source code can be roughly divided into two types

play00:39

One is completely open.

play00:40

Everyone can view the download

play00:42

and used within certain rules

play00:43

For example, the famous Linux android belongs to this category.

play00:46

Open source is the treasure of human computer industry

play00:48

Most of the software we use in our lives

play00:50

are based on open source software secondary development

play00:53

It can be said that without open source, there would be no prosperous Internet today.

play00:55

Another source code is private

play00:57

Only the uploader and the user with the specified permissions can access

play01:00

It's called GitHub.

play01:01

Because it is mainly based on the idea of version control tool git.

play01:03

Establish and manage code

play01:05

As for what G is, that's what another video will talk about.

play01:08

So ask below in my blog park video

play01:10

Why Blog Garden?

play01:11

Don't use githu and ask why github is used under my github video.

play01:15

No need for a loveless and cool audience

play01:16

There should be an answer here.

play01:18

Because github is a code hosting platform

play01:20

Not the blog community.

play01:21

It's not a resource-sharing community.

play01:22

Although he has some of the functions of the first two to a certain extent

play01:26

Then we look at the second part

play01:27

In this part, I will share some common github function modules.

play01:30

and their role.

play01:31

When you receive the address of a github project

play01:33

And after opening it

play01:34

You will see an interface similar to the following

play01:36

The most visible in the interface is the code base.

play01:38

This is the middle part.

play01:39

Inside is the source code of the entire project.

play01:41

We can click directly to view the contents of it.

play01:44

You can also click the button in the upper right corner.

play01:46

Select download

play01:47

Download it directly.

play01:48

Each file in the code base will have two pieces of information behind it.

play01:51

The first is the commit message.

play01:52

This is the last time the author updated the codes' remarks.

play01:55

The second is the last update time

play01:57

If in a project

play01:58

All documents were updated many years ago

play02:00

That means he may have no one to maintain

play02:02

of the code base

play02:03

Below is the introduction of the project

play02:04

github will automatically access the read me file of the project

play02:06

and show the contents here

play02:08

You can generally see what this project does here.

play02:11

What's the use and how to use it?

play02:12

Of course, its specific content and the degree of detail.

play02:14

Depending on the author, there will be nothing to write.

play02:16

If you are not a programmer.

play02:18

I just came to github to find software.

play02:19

You can pay more attention to this part of the content.

play02:21

Another module that needs attention is the releases on the right.

play02:24

This is usually packed by the author.

play02:26

Introduction to the software and the current version

play02:28

You can download directly using

play02:29

For example, this project I am opening now

play02:31

The author provides a Linux version.

play02:32

mac version

play02:33

windows version and source package

play02:34

Sliding down

play02:35

Old versions can also be found

play02:36

According to their own needs, click to download

play02:39

It should be noted that

play02:40

Not all projects will have releases to offer

play02:42

On the releases is the bot module

play02:44

The overall summary of the project will be shown here

play02:46

In general, there are brief labels for each project.

play02:49

open source protocol

play02:49

Important information such as star numbers

play02:51

Can help you quickly understand the current project

play02:53

Which star similar video site collection

play02:55

Can reflect the heat of the project

play02:56

If you are interested in a project.

play02:58

You can also click the start button to give the author a star.

play03:00

As you are interested in my video

play03:02

Can also give me a collection and attention

play03:04

On the left of star is the fork function.

play03:06

Click on it

play03:06

You can directly put all the code of the current project.

play03:08

Copy to your own home page.

play03:10

That's right.

play03:10

Take someone else's code on github

play03:12

It's that simple

play03:13

There is no need to notify the author.

play03:14

And don't need any pay

play03:15

On star and fork is github's search module.

play03:18

You can search for the current project.

play03:20

You can also delete the original content in the search box.

play03:22

Search the entire github resource directly

play03:24

Finally, let's look at the upper left corner of the page.

play03:26

There is also a very important function here

play03:28

issues

play03:28

Its function is to give the author of the project feedback questions.

play03:31

For example, you encountered a bug when using it.

play03:33

You can tell the author here.

play03:34

Help authors improve the project

play03:36

You can also check out other people's questions here.

play03:38

or join the discussion

play03:39

Help others solve problems

play03:40

It should be noted that

play03:41

Please pay attention to the quality of any discussion

play03:43

Respect for others

play03:44

All right.

play03:44

The video is here.

play03:45

You already know

play03:46

As a white whoring monster need to know all the common functions

play03:48

You can play happily to Habra.

play03:50

I'll talk about it in the next video.

play03:51

What do you need to do if you want to participate in the development of open source projects?

play03:54

That's all for this video.

play03:56

I'm Melody Ninety-Nine

play03:57

Let's see you next time.