git操作基于idea集成工具,客户端git小乌龟版本控制工具, 命令可以使用Git Bash
    
     git pull :
    
    拉取远程代码
   
     
   
git commit:提交代码,本地保存
     
   
git commit之前一般需要
    
     先stash changes (保存本地代码),再 git pull(拉取远程代码),在stash pop(将本地代码更新到当前项目),如有merge,本地修改冲突后git commit
    
   
    
     stash changes,stash pop:使用的是git小乌龟版本控制工具
    
   
     
   
    
     git push :
    
    推送commit代码到远程仓库
   
     
   
    
     git reset
    
    : 还原commit
   
举例:
    
     git reset –soft HEAD^
    
    1
    
     恢复至撤销过去一个
    
    commit
   
    
     git reset –soft HEAD^2     恢复至撤销过去两个
    
    commit
   
    –mixed
   
不删除工作空间改动代码,撤销commit,并且撤销git add 操作
    
    
    –soft
   
不删除工作空间改动代码,撤销commit,不撤销git add
    
    
    –hard
   
删除工作空间改动代码,撤销commit,撤销git add .
点击你的项目名,如下操作:
     
   
     
   
 
