How to Use Git and GitHub

原创 2016年05月31日 15:01:36

Lesson1

Finding Diffs Between Larger Files

这个课程让我学会用命令行自动比较两个文件的不同
下载材料两个javascript文件:
game_old.js
game_new.js
打开命令行cmd,输入cd downloards进入存放上述两文件的路径
然后输入FC game_old.js game_new.js (FC = file compare)
回车,显示结果

这里写图片描述

Reflect: Using diff to Find Bugs

Choose Sublime as a text editor
Make sure you can launch your editor from the command line
Windows
方法:
Find the directory where Sublime is located for you. For many people, this is C:/Program\ Files/Sublime\ Text\ 2/sublime_text.exe. To test this, run ls C:/Program\ Files/Sublime\ Text\ 2 within Git Bash. You should see sublime_text.exe listed. If you get the error No such file or directory, Sublime is located somewhere else for you and you’ll need to find it. For example, it might be under C:/Program\ Files\ (x86)`.

Run the following command in Git Bash: echo ‘alias subl=”C:/Program\ Files/Sublime\ Text\ 2/sublime_text.exe”’ >> ~/.bashrc If Sublime was in a different directory for you in step 1, use that directory.

Close and re-open Git Bash.

Type subl in Git Bash. If Sublime opens no further steps are required. If Sublime does not open continue with steps 5 - 7.

Test .bashrc by running the command source ~/.bashrc in Git Bash and retry typing subl to start sublime. If Sublime doesn’t start check the contents of the file ~/.bashrc created in step 2.

To ensure the .bashrc file contents is loaded each time you open Git Bash, edit ~/.bash_profile and add the following two lines. (Reference)

if [ -r ~/.profile ]; then . ~/.profile; fi

case “$-” in i) if [ -r ~/.bashrc ]; then . ~/.bashrc; fi;; esac

Close and re-open Git Bash. Type subl in Git Bash to check it starts correctly.

Set up your course workspace

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

How to configure and use Git with visual studio 2012 and TFS

/* Author: Jiangong SUN  */ "GIT: is a free and open source distributed version control syste...

how to use git

  • 2012-03-20 13:38
  • 186KB
  • 下载

how to use git

  • 2010-01-31 18:41
  • 1.85MB
  • 下载

Github how to use

Make a commit On GitHub, saved changes are called commits. Commits are pretty glorious, because a...

How to use github

了解Github的基本功能:也就是为什么用Github。 forward from the original url (http://www.zhihu.com/question/20070065)...

How to understand and use Milkrun

  • 2011-04-29 16:29
  • 218KB
  • 下载

How to use git in Linux

从仓库中导出文件 我们需要将文件从 Git 仓库(隐藏目录中的那些文件)中导出到工作目录中才能开始自己的 hack 过程。下面的命令会在当前目录中写入没有隐藏的目录,其中包含了 Linux 的源代码...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)