代码改变世界

随笔分类 -  Git&GitHub

Viewing A Specific Commit_12

2018-03-25 23:51 by Weiweim, 192 阅读, 收藏,
摘要: Too Much Scrolling The last few quizzes in the previous section had you scrolling and scrolling through the patch output just to get to the right comm 阅读全文

Viewing File Changes_11

2018-03-25 23:22 by Weiweim, 244 阅读, 收藏,
摘要: Viewing Changes We know that git log will show us the commits in a repository, and if we add the --stat flag, we can see what files were modified and 阅读全文

Changing How Git Log Displays Information_10

2018-03-25 22:03 by Weiweim, 284 阅读, 收藏,
摘要: Let's think about some of these questions: the SHA - git log will display the complete SHA for every single commit. Each SHA is unique, so we don't re 阅读全文

Outro_9

2018-03-25 21:36 by Weiweim, 253 阅读, 收藏,
摘要: 我们使用git init来创建自己的仓库, 使用git clone来复制现有仓库, 并使用git status来确定仓库的状态, 现在,你可能想直接跳转进行提交,因为没有提交的仓库并不是很有用, 但在我们开始之前,学会查看提交对我们生成自己的提交会很有帮助 因此让我们来学习如何查看现有提交, git 阅读全文

Determine A Repo's Status_8

2018-03-25 13:21 by Weiweim, 409 阅读, 收藏,
摘要: Working with Git on the command line can be a little bit challenging because it's a little bit like a black box. I mean, how do you know when you shou 阅读全文

Clone_An_Existing_Repo_7

2018-03-25 07:06 by Weiweim, 381 阅读, 收藏,
摘要: Why Clone? First, what is cloning? to make an identical copy What's the value of creating an identical copy of something, and how does this relate to 阅读全文

在GitHub里生成自己的网页

2017-12-05 11:55 by Weiweim, 3336 阅读, 收藏,
摘要: 这里有两种方式:1 基于项目主题的网页 2 基于个人的网页 首先看第一个,选择一个自己的宝库repository,如hello-world,点击进入, 在下面第一行的标签栏选择Settings 在Settings页面,拉到下面的GitHub Pages栏,在这里选择一个主题; 然后你就可以访问自己的 阅读全文

GitHub里的Hello World!

2017-12-05 10:00 by Weiweim, 289 阅读, 收藏,
摘要: 前提:已成功登录GitHub,网络通畅 首先,创建一个Repository(宝库),这个repository里可以放任何你想放的东西; 注意要勾选上Initialize this repository with a README; 接着,创建一个Branch(分支),这里命名为readme-edit 阅读全文

GitHub与Git

2017-12-05 09:59 by Weiweim, 184 阅读, 收藏,
摘要: GitHub是一个代码托管平台,始于2008年4月; Git是一个软件系统,用于版本控制; 而GitHub的核心就是Git,它们都是开源的; 有了这两样,你就可以使用Git在GitHub上基于本机和浏览器管理好自己的代码! 阅读全文