git
git blame filename git blame filename 特定ファイルの更新履歴を追うことができます。 $ git blame README.md 24b1cf2b (****** 2018-11-14 16:04:39 +0900 1) # Serverless Application f8c542d6 (****** 2018-11-22 15:43:15 +0900 8) f8c542d6 (****** …
go getは、基本的にhttpsでの取得をするのでgitのconfigでinsteadをしましょう Github: git config --global url."git@github.com:".insteadOf "https://github.com/" BitBucket: git config --global url."git@bitbucket.org:".insteadOf "https://bitbucke…
// cloneしてくる git clone git@github.com:hoge/hoge.git git fetch origin pull/38/head:pullreq <-pullreqの番号をいれる git branch -a git checkout pullreq
git log --follow -p filename
git log --follow -p filename
git でローカルの変更を全てリセットする方法 git reset --hard Head git clean -fdx 変更をリセット Untracked filesを削除
// cloneしてくる git clone git@github.com:hoge/hoge.git git fetch origin pull/38/head:pullreq <-pullreqの番号をいれる git branch -a git checkout pullreq
プルリクを送りたい時に、チェックボックスをつけたいなんて要望があるかと思いますが、 その時は、下記のように書きます。 - [ ] hogehoge - [ ] @~~~~ で特定の人を表記することもできる
SourceTreeとは、Atlassianが出しているgitを操作するツールなわけですが、無料でしかも結構使いやすいので、使う事にしました。 その使い方についての備忘録をここに忘れないように追記方式で書いておこうと思います。 インストール インストールは、Atlass…
git-flowでは、下記の5つのブランチを利用します。 developブランチ 開発を行うためのブランチ。開発者は、主にこのブランチ上で作業を行う。次に紹介するfeatureブランチなど、他のブランチで行った作業は、ここにマージされる featureブランチ 主要な機能…
基本操作 Git リポジトリを新たに作成する git init 新規プロジェクト作成の時に使います。 リモートリポジトリの追加 git remote add origin git@hoge.github.com:hogehoge/hoge.git 既存のリポジトリのクローン git clone git@hoge.github.com:hogehoge/ho…