Unstage changes in Git to a specific file -
i've made changes specific file in repository, , committed changes. under 1 commit.
in 1 commit, made changes several other files. how unstage changes made one specific file , not of files changed in commit?
unstage isn't right word here - refers removing changes index (the staging area), implication haven't been committed.
since changes have been committed, you're asking how check out version of file previous commit:
git checkout head^ path/to/file
head
current commit, , head^
first parent of head
.
Comments
Post a Comment