LoginSignup
0
0

More than 3 years have passed since last update.

駆け出しエンジニア の学習記録 3日目Git,GitHub 後編

Posted at

メモ

git editor 登録できてなかったので↓参考に https://qiita.com/matyahiko2831/items/8eb2eabbd94ed335218e

エラー文 hint: Waiting for your editor to close the file.. GitHubにpushしたコミットをリベースするのはNG git push -f は絶対にNG

使用したコマンド

・git rebase -i <コミットID> 
↳ git rebase -i HEAD~3 3つ前からのコミットの順でrebaseしていく
・git tag tagを確認できる (いつのコミットかわかるのでバグの時に対応しやすい)
・git tag -a <タグ名> -m"<メッセージ>" 

vim操作 
yy 一行コピー
dd 一行削除
esc コマンドモードに切り替え 
:wq 保存して終了

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