0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Git コマンド一覧(自分用)

0
Last updated at Posted at 2025-05-20

Overview

業務でもなんとなくなあなあにして避けてきたGit。
sourcetreeやVS codeのエクステンションでGUI様にたくさん助けてもらったけど、もういい歳だし、ポートフォリオサイト作成や自己開発の増加を見越してコマンドくらいはいちいち調べず覚えようと、ここにまとめておこう。さすがに今更感もあるけど、自分用だしQiitaのカムバックログイン的な記事なので気にしない気にしない。

Commands

コマンド やりたいこと
git pull プル
git add {fileName}\ngit add . ステージング
git reset HEAD {fileName} ステージングを取り消す
git commit コミットする
git push ローカルリポジトリの変更点をリモートリポジトリにマージ
git log ログを確認する
git diff 何処を編集したのか知りたい場合
git branch ブランチ
git checkout -b {branchName} 新規ブランチを作りそれをカレントブランチにする
git merge {branchName} 他のブランチを現在のカレントブランチに取り込む
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?