3
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?

gitの操作

Posted at

記事の概要

git操作をVSCodeから行うコマンドの一覧が欲しかったので...

ブランチを切ってからプッシュするまで

ブランチを切る

$ git checkout -b ブランチ名

ブランチのコードをmainにコミットする

$ git checkout main
$ git merge マージしたいブランチ名
$ git add .
$ git commit -m 'コミットメッセージ'

リモートにプッシュする

$ git push

ブランチの確認から削除

$ git branch
$ git branch -d 削除したいブランチ名

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
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?