# Error: Target org.macports.activate returned: Image error:/opt/local/lib/perl5/5.8.8/darwin-2level/auto/List/Util/Util.bs is
being used by the active perl5.8 port. Please deactivate this port
first, or use the -f flag to force the activation.
# Error: The following dependencies failed to build:
p5-scalar-list-utils p5-svn-simple subversion-perlbindings apr
apr-util cyrus-sasl2 neon serf subversion p5-term-readkey rsync popt
# Error: Status 1 encountered during processing.
# Error: Target org.macports.activate returned: Image error:
/opt/local/lib/perl5/5.8.8/darwin-2level/auto/List/Util/Util.bs is
being used by the active perl5.8 port. Please deactivate this port
first, or use the -f flag to force the activation.
# Error: The following dependencies failed to build:
p5-scalar-list-utils p5-svn-simple subversion-perlbindings apr
apr-util cyrus-sasl2 neon serf subversion p5-term-readkey rsync popt
# Error: Status 1 encountered during processing.
# ssh-keygen
Generating public/private rsa key pair.
Enter fileinwhich to save the key (/Users/tom/.ssh/id_rsa): ← ファイル名はid_rsaでOK? いや今回は違う名前が良いので、github_id_rsaを打ってエンター
Enter passphrase (empty for no passphrase): ← パスワードの設定
Enter same passphrase again: ← 上記のパスワードを再入力
Your identification has been saved in/Users/.ssh/github_id_rsa.
Your public key has been saved in/Users/.ssh/github_id_rsa.pub.
# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/tom/.ssh/id_rsa): ← ファイル名はid_rsaでOK? いや今回は違う名前が良いので、github_id_rsaを打ってエンター
Enter passphrase (empty for no passphrase): ← パスワードの設定
Enter same passphrase again: ← 上記のパスワードを再入力
Your identification has been saved in /Users/.ssh/github_id_rsa.
Your public key has been saved in /Users/.ssh/github_id_rsa.pub.
# mkdir jqplugin# cd /Users/projects/workspace/プロジェクト名/# touch README# git init
Initialized empty Git repository in/Users/projects/workspace/プロジェクト名/.git/# ls -la
total 8
drwxr-xr-x 4 user group 136 Jul 3015:55 ./
drwxr-xr-x 3 user group 102 Jul 3015:55 ../
drwxr-xr-x 9 user group 306 Jul 3015:55 .git/-rw-r--r--1 user group 1379 Jul 3015:54 READEME
# mkdir jqplugin
# cd /Users/projects/workspace/プロジェクト名/
# touch README
# git init
Initialized empty Git repository in /Users/projects/workspace/プロジェクト名/.git/
# ls -la
total 8
drwxr-xr-x 4 user group 136 Jul 30 15:55 ./
drwxr-xr-x 3 user group 102 Jul 30 15:55 ../
drwxr-xr-x 9 user group 306 Jul 30 15:55 .git/
-rw-r--r-- 1 user group 1379 Jul 30 15:54 READEME
# git add READEME# git status# On branch master## Initial commit## Changes to be committed:# (use "git rm --cached <span><file></span>..." to unstage)## new file: READEME#
# git add READEME
# git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <span><file></span>..." to unstage)
#
# new file: READEME
#
確認が出来たのでコミットしてみる
# git commit -m "こみっとてすと"[master (root-commit) 487cdff] こみっとてすと
1 files changed, 28 insertions(+), 0 deletions(-)
create mode 100644 READEME
# git remote add original git@github.com:ユーザー名/作成したディレクトリ名.git# git push original master
Counting objects: 6, done.
Delta compression using up to 2 threads.
Compressing objects: 100%(4/4), done.
Writing objects: 100%(6/6), 1.17 KiB, done.
Total 6(delta 0), reused 0(delta 0)
To git@github.com:ユーザー名/作成したディレクトリ名.git
*[new branch] master -> master
# git commit -m "こみっとてすと"
[master (root-commit) 487cdff] こみっとてすと
1 files changed, 28 insertions(+), 0 deletions(-)
create mode 100644 READEME
# git remote add original git@github.com:ユーザー名/作成したディレクトリ名.git
# git push original master
Counting objects: 6, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (6/6), 1.17 KiB, done.
Total 6 (delta 0), reused 0 (delta 0)
To git@github.com:ユーザー名/作成したディレクトリ名.git
* [new branch] master -> master
2 thoughts on “[ git ][ Mac ] Macにgitをインストールしてそのままgithubにも登録”