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 3 years have passed since last update.

Gitコマンドよく使うやつ一覧

0
Posted at

Gitでよく使うコマンド一覧

コマンド 説明
git init 空のGitリポジトリを作成する
git clone リモートリポジトリのコピーを作成する
git add ファイルをステージングエリアに追加する
git commit -m "" ステージングエリアの変更をコミットする
git status ファイルのステータスを表示する
git diff 変更点を表示する
git branch ローカルブランチの一覧を表示する
git checkout 指定したブランチに移動する
git merge 指定したブランチを現在のブランチにマージする
git pull リモートリポジトリから変更を取得し、ローカルブランチにマージする
git push ローカルリポジトリの変更をリモートリポジトリにプッシュする
git remote add リモートリポジトリを追加する
git remote -v 接続されているリモートリポジトリの一覧を表示する
git log コミットログを表示する
git reset ステージングエリアから指定したファイルを削除する
git revert 指定したコミットの変更を取り消す新しいコミットを作成する
git rm ファイルを削除して、ステージングエリアに追加する
git tag 現在のコミットにタグを付ける
git show 指定したコミットの詳細を表示する
git stash 変更を一時的に保存する
git fetch リモートリポジトリから変更を取得するが、ローカルブランチにマージしない
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?