工具的使用

idea篇

1.取消commit

(1)通过Terminal命令,git reset --mixed (soft,hard) commit_id

  commit_id是commit的SHA-1,可以在log里查看到,或点击push,对比版本时,也可查看commit_id

  --mixed 会保留源码,只是将git commit和index 信息回退到了某个版本

  --soft 保留源码,只回退到commit信息到某个版本.不涉及index的回退,如果还需要提交,直接 commit即可.

  --hard 源码也会回退到某个版本,commit和index 都会回退到某个版本.(注意,这种方式是改变本地代码仓库源码)
(2)通过右键工程 "git"-->"Repository"-->"Reset Head...",To Commit填入想要回滚到的commit_id,选择Reset Type,Reset

2.取消push

  Terminal命令, git revert commit_id ,然后再push

3.git检出项目

(1)目录下:git clone https://github.com/…/PrettyGirls.git 

(2)vcs——check out from Version Control——git——clone——yes

4.svn检出项目

4.插件安装

  setting——plugins

5.自动生成author,date

  file——settings——editor——file and code templates——includes——file header

7.改变主体

https://blog.csdn.net/cienven/article/details/79066290

http://www.runoob.com/redis/redis-intro.html

原文地址:https://www.cnblogs.com/1506wch/p/10131214.html