git

特定のブランチorタグをcloneする

git

git clone リポジトリ名 -b ブランチorタグ名 qiita.com

ユーザー指定でgit clone

git

$ git clone https://<username>@github.com/~~~/~~~.git push/pullでユーザー名を毎回入れなくて済む。 またはグローバル設定する。 $ git config --global user.name <username> 追記: gitlab.comだと.gitまで入れないとusername認識しないっぽい gitlab.com hacknote.jp</username></username>

gitスタイルガイド

git

https://github.com/objectx/git-style-guide ブランチ名をキャメルケースにするか、ーハイフンか、_スネークどれが良いか? スタイルガイドに習いハイフンにする。 f/tidy-up 参考 qiita.com

コミット間ではなく、別々のファイル差分を見たい

git

$ git diff --no-index -- path1 path2 pathはファイルでもフォルダでも可。diffコマンドより見やすいよね。