git version rollback single file

1. History to submit queries all records: git log --pretty = oneline <filename>

2. show historical content: git show <commit_id>

3. checkout corresponding version. git checkout <hash> <filename>

4. Update the first to finish, the content can commit, then push

 

Guess you like

Origin www.cnblogs.com/blackEyeProgram/p/11562834.html