Note that there are some explanatory texts on larger screens.

plurals
  1. POGIT: Undoing Changes to a File or Folder by a Solo Developer?
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/933329/git-undo-changes-in-some-files">git undo changes in some files</a> </p> </blockquote> <p>I am a solo developer (well, student actually) and find myself often wishing to roll back files to a prior state and undo changes that introduced bugs to the program. I wish to do this to individual files most of the time, but may wish to do this as well as to the entire folder at other times. This could theoretically extend to restoring files that I have deleted. Assume that I have the prior state of the files and folder saved with a prior commit. I am not trying to erase the prior commit, just to roll back and have a log of what I have done. I am the only person working on the files, this is not a project cloned from a hosting site.</p> <p>I know how to do the extreme basics in Mercurial, and find that <code>hg revert</code> and <code>hg update #</code> do what I want to do in the mercurial world but have yet to understand how git does it. I may wish to ultimately host a project on Github and was also interested in learning about git since it is becoming the dominant player in the version control universe. I have no background in subversion and do not need references as to how things are different from subversion.</p> <p>I may wish to learn how to fork my own project to a couple of versions and later merging them, but I will explore this later. My question at the moment applies to rolling back changes to the only copy of files and folders on my own hard drive.</p> <p>Any suggestions as to a newbie friendly intro to git? Either online or book form is fine. Please do not guide me to any resources written by Scott Chacon; I find his style and books/Peepcode PDF extremely confusing. I also have the Pragmatic Guide to Git book by Swicegood, but have not found it super helpful. It should not be so difficult to figure out how to undo changes in git. I have spent hours so far searching.</p> <p>Please note that I am a newbie with version control so please be gentle.</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload