3
3

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

とりあえずの最低限Gitコマンド

Posted at

コマンドで扱う

プログラミングを初めてから、ずっとGitHubDesktopを利用していた。
しかし現場に入ってから、コマンドでGitを扱うことが増えたため、使用する頻度が高いと感じるコマンドを備忘録として書いておく。

コマンド一覧

//ファイルの登録
$ git add <ファイル名>
//ファイルの変更、追加をコミット
$ git commit -m "コミットメッセージ"
//ローカルの変更を確認
$ git status
//コミットの変更履歴を確認する
$ git status
//リモートにプッシュ
$ git push origin <ブランチ名>
//ブランチをマージ
$ git merge <ブランチ名>
//ブランチの移動
$ git checkout <ブランチ名>
//作業内容を一時避難
$ git stash
//一時避難させた内容を一覧表示
$ git stash list
//一時避難させた内容を復活させる
$ git stash apply <stash名>
3
3
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
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?