1
0

More than 1 year has passed since last update.

Git CLIメモ

Last updated at Posted at 2022-03-01

username/email設定

git config --global user.name "hogehoge"
git config --global user.email "hogehoge@gmail.com"

ローカルブランチ削除

git branch -D branch_name

リモートブランチ削除

git push --delete origin branch_name

直前のコミットのコメント修正

git commit --amend -m "commnet"

直前のコミットの取り消し

# windows
git reset --soft "HEAD^"

# mac
git reset --soft HEAD^
1
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
1
0