LoginSignup
0
0

More than 1 year has passed since last update.

Git コマンド集

Posted at

Git command集

ファイルの追加、コミット

git add ファイル名
git commit -m "コメント"

ファイルをアップ

git push origin ブランチ名

git log

git log

ツリーの整形

git log --graph --pretty=format:"%h %ad %s"

rebase

git rebase ブランチ名 // 起点となるブランチ

これで完璧! 図解でわかるgit rebaseの2つの使い方! | 侍エンジニアブログ

変更を退避させる(stash)

git stash save "コメント"

退避の一覧確認

git stash list

退避をもとに戻す

git stash applay "戻したいstash番号"

退避したものをもとに戻してリストから消す

git stash pop "戻したstash番号"

コミット間の差分

git diff <コミットID1> <コミットID2>

コミット間の差分ファイル一覧確認

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0