よしだです

プログラミングの勉強してます

git

githubのcommit履歴を消したい

git

githubにpushしてから、パスワードとかベタ貼りのファイルをpushしてしまったことに気づいたので慌ててcommit履歴を消しました。 手順 ①消したいファイルをコピーしてバックアップを取る cp file_path コピー先のpath ②commit履歴を消す git filter-branch -…

vagrantからgithubにpushしようとしたら出来なかった

error: The requested URL returned error: 403 Forbidden while accessing https://github.com/YAhiru/ticket_reserve.git/info/refs fatal: HTTP request failedってエラーが出たんで その対処法 git remote set-url origin https://YAhiru@github.com/YAh…