I've been using SVN before, just using Git is a bit lame, and today I'm going to summarize some of the common techniques in using git
1, restore
You need to restore a class after editing a section, as follows
Right-click the file you want to restore--"team--" show in history appears as follows
This shows the version you submitted, select the version you want to restore--right click--"reset--" hard
2. Contrast
Modified classes are compared to files on the Git library (often used to resolve conflicts)
Right-click on your project--"team--" Synchronize workspace--"find the document you want to compare-" appears as follows
3, ignore the submission, has been submitted to the local warehouse file discard push
①, choose the file you want to ignore--"team--" Ignore (This action will add the ignore path or file in. gitignore), when submitted again will not display the ignored files;
②, if the file has been submitted to the local repository, push do not want to push to the remote, select the file you want to process--"team--" Remove from index--"Repeat step ① again, push is not to push the file
If you want to commit again, you need to remove the ignore path from the. Gitignore
Summary of using Git tips in eclipse