User Tools

Site Tools


Sidebar

Writing /opt/bitnami/dokuwiki/data/meta/git/delete-tag.meta failed
Unable to save metadata file. Hint: disk full; file permissions; safe_mode setting.

Go Back

Contact
Recent Changes
Sitemap
git:checkout-file-from-specific-commit

Git: checkout a single file from a specific commit

git checkout <COMMIT#> <path/to/the/messed/up/file>

Example:

git checkout f08a63ff4fa7b8479f8c698e5998ee1afcac3a4e Gemfile

FROM https://coderwall.com/p/pgqlkq/git-checkout-a-single-file-from-a-specific-commit

git/checkout-file-from-specific-commit.txt · Last modified: 2020/07/16 09:57 by whtsky