LoginSignup
0
0

More than 1 year has passed since last update.

gitメモ/credential-manager

Last updated at Posted at 2021-02-09

#credential-manager: 認証情報を記憶したりパスワードを記録したりするサービス。
git: 'credential-manager' is not a git command. See 'git --help'.

直前のコミットを取り消す

git reset --soft HEAD^

--softオプション:ワークディレクトリの内容はそのままでコミットだけを取り消したい場合に使用。
--hardオプション:コミット取り消した上でワークディレクトリの内容も書き換えたい場合に使用。

うかつにhardをうつと作業がなくなってしまう。

HEAD^:直前のコミットを意味する。

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