0
1

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のコマンドあれこれ

Last updated at Posted at 2022-05-22

ローカルリポジトリでブランチを作成

terminal
git checkout -b [NewLocalBranchName]

現在のブランチを変更する

terminal
git checkout [localBranchName]

ブランチの削除

※ 削除しようとしているリポジトリにいる状態だと削除できない

terminal
git branch -d [localBranchName]

現在のローカルリポジトリのブランチを全て確認

terminal
git branch -a

参照元: https://qiita.com/TetsuTaka/items/5ab227a8bd2cd7106833

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?