codecamp

41. Git 更改原始仓库

目的

对原始仓库做些更改以便我们可以尝试拉下更改。

在原始的 hello 仓库中做更改

$ cd ../hello
# (You should be in the original hello repository now)

注意:现在在 hello 仓库中。

对 README 做下列更改:

This is the Hello World example from the git tutorial.
(changed in original)

现在添加并提交此更改。

$ git add README
$ git commit -m "Changed README in original repo"

下一步

原始的仓库现在有克隆版本中所没有的更改。接下来我们将 拉下这些更改到克隆的仓库中。

40. Git 远程分支
42. Git 取得更改
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }