インストール
|
1 |
$ brew install git-flow |
リポジトリの『設定』を初期化
.git/config に設定が追加される
対話形式
|
1 |
$ git flow init |
featureブラランチのプレフィックスなどを対話形式で入力する。
デフォルト設定
|
1 |
$ git flow init -d |
全てデフォルト名で設定する。
|
1 |
$ brew install git-flow |
.git/config に設定が追加される
|
1 |
$ git flow init |
featureブラランチのプレフィックスなどを対話形式で入力する。
|
1 |
$ git flow init -d |
全てデフォルト名で設定する。
|
1 2 3 4 5 6 |
$ git branch -a * master xyz remotes/origin/HEAD -> origin/master remotes/origin/master remotes/origin/xyz |
|
1 2 3 4 |
$ git branch -r remotes/origin/HEAD -> origin/master remotes/origin/master remotes/origin/xyz |
|
1 2 3 4 5 |
<<<<<<< HEAD printf("Hello"); ======= printf("Bye"); >>>>>>> |
「ステージングされていない」かつ「.gitignoreに指定されていない」 Untracked filesを一括して削除する方法
いろいろな IDE, プログラミング言語の .gitignore 集
|
1 |
$ git mv foo.c bar.c |
|
1 |
$ git mv -f Readme.txt README.TXT |
|
1 |
$ git clone git://github.com/schacon/myproject.git |
|
1 |
$ cd myproject |
|
1 |
$ git submodule init |
|
1 |
$ git submodule update |
|
1 |
$ git submodule update --init |
|
1 |
$ git submodule update --init --recursive |
git svn clone で取得したリポジトリで以下のwarningが発生するときの回避策
|
1 2 3 4 5 6 7 8 |
$ git svn rebase W: Refspec glob conflict (ref: refs/remotes/svn/Preview_August@1053): expected path: Src/branches/Preview_August@1053 real path: Src/trunk2 Continuing ahead with Src/trunk2 [...] Continuing ahead with 25_Android_Src Current branch master is up to date. |
~/.git/configの重複行を削除
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true precomposeunicode = true [svn-remote "svn"] url = http://someone.somewhere.jp/svn/foo fetch = Src/trunk:refs/remotes/svn/trunk branches = Src/branches/*:refs/remotes/svn/* tags = Src/tags/*:refs/remotes/svn/tags/* - branches = Src/branches/*:refs/remotes/svn/* - tags = Src/tags/*:refs/remotes/svn/tags/* |