How to Use Git and GitHub

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


Finding Diffs Between Larger Files

打开命令行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
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...

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 (

为何以及如何使用Netlink Socket ( Why and How to Use Netlink Socket)

原文: Why and How to Use Netlink Socket ...
  • cjsycyl
  • cjsycyl
  • 2012年03月30日 13:24
  • 373

How To Use Animations and Sprite Sheets in Cocos2D

How To Use Animations and Sprite Sheets in Cocos2DLike this post? Follow me on Twitter!Smoky says: O...

[Backup] How to build and use Pansenti / meta-pansenti for Gumstix Overo Ironstorm

The original post Building small board systems with the Yocto Project is not available, here is the ...
  • Pyen
  • Pyen
  • 2013年11月12日 02:22
  • 2030

How To Use NSOperations and NSOperationQueues

Learn how to use NSOperations in your app! Everyone has had the frustrating experience of tappi...

How to use tcpdump and Wireshark

Using tcpdump and Wireshark to sniff and analyse your network traffic Sometimes a network...

how to use git

  • 2010年01月31日 18:41
  • 1.85MB
  • 下载

iOS 5 Storyboard: How To use Segues, Scenes and Static Content UITableViews--Part II

Prototype Cells and Static Content Other neat features of Storyboards are Prototype Cells and Stati...
您举报文章:How to Use Git and GitHub