LoginSignup
0
1

More than 5 years have passed since last update.

Vagrant上からGit commitしても草が生えないとき

Posted at

はじめに

VS code Remote Developmentを利用してVagrantにssh接続し、そこからgitにコミットしていたのですが、全く進捗の草が生えていませんでした(泣)

対処法

理由はとても単純で、Vagrantの時刻設定がUTCになっていたからでした(自分のコミットが全て未来に飛んでました。)。

シアトルに住んでるので、PDTに変えたいと思います。以下のコマンドで終了です。

# Check
$ timedatectl
# Check timezone
$ timedatectl list-timezones
# Set timezone
$ sudo timedatectl set-timezone America/Vancouver
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