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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -