LoginSignup
1
1

More than 5 years have passed since last update.

coda2でgitを使ってバージョン管理をする

Posted at

まずはMacPortsインストール

MacPorts

http://www.macports.org
右上に「download」のリンクがあるので、その先の本文の中にMountain LionなどのOS名の表記があるのでそれをクリックしてダウンロードしてインストール。

次にGitインストール

次はターミナルを起動してMacPortsでGitをインストール

sudo port install git-core

以下のようなエラーが出る場合、

Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build.

Warning: See http://guide.macports.org/chunked/installing.xcode.html for more information.
---> Computing dependencies for git-coreError: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?

Xcodeのコマンドラインツールが入ってないということ。

Xcodeを起動してFile – Preferencesから、

Command LineツールをインストールすればOK

念のためにターミナルを再起動してGitインストール完了!

coda2を設定

Coda2の「環境設定」の「ファイル」タブの下にある「Gitパス」にGitのパスを追加

/opt/local/bin/git
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1