該当するbranchに移動
$ git checkout hogebranch
過去いくつかのcommitをgit rebase -i
(下記の場合は7個)
$ git rebase -i HEAD~~~~~~~
(git rebase -i HEAD~7
という書き方でもOK)
↓
該当するbranchに移動
$ git checkout hogebranch
過去いくつかのcommitをgit rebase -i
(下記の場合は7個)
$ git rebase -i HEAD~~~~~~~
(git rebase -i HEAD~7
という書き方でもOK)
↓
$ git branch -m NEW_BRANCH_NAME
自分の作業がない状態で、新しいbranchをpullしたらCONFLICTした
g co master
g reset HEAD --hard
g br -D branchname
g fetch
or
g pull --rebase
?w=1 | |
やべえ | |
https://github.com/grooves/forkwell/commit/17738a46af370661682d34cf64515e45c6ce509e?w=1 | |
ホワイトスペースのみの変更の行を省いて表示してくれるっぽい。Life Changing! |
$ gem prestine mysql2 | |
とかやる |
$ brew link --overwrite git |
$source ~/.zshrc | |
↓でもよい | |
$. ~/.zshrc | |
PATHを追加したときは、上記のようにして再読み込みする必要がある | |
おもむろにrvmをアンインストール
$ rvm implode
後、これらをインストール
$ brew install openssl
$ brew install readline
$ brew install libyaml
$ brew install autoconf
# nilじゃない | |
- if cu.position == nil | |
#ストリングっぽかったら | |
- if cu.position.blank? | |
# 何かの集合っぽかったら | |
- if cu.position.empty? |