git  clone + 地址
1 、查看工程中被修改的文件:git  status
2 .将不需要提交的文件回退:git  check < 文件路径> 
3 .更新工程到最新:git  pull
4 .将本地代码添加到暂存区:git  add  < 将要提交的文件路径>  //git add  --all:将全部修改的文件添加到子分支
5 .将代码提交到本地仓库:git  commit -m  “提交说明”
6 .将本地仓库的代码提交到远程仓库git  push 或者 git  push origin “子分支名字”
git  remote -v  :查看git代码路径
git  log
git  pull
 1 .git branch -a  :查看当前所有的分支名字;2 .git checkout + 分支名字:切换到某分支3 .git branch :查看当前是哪个分支
工作区的代码撤销:
1 .git status : 查看哪些文件是修改过的;
2 .git checkout + 文件路径:让这个文件回到最近一次git commit或git add时的状态git  add到暂存区的代码要撤销:
1 .git reset HEAD:将暂存区的代码回退到工作区;
2 .工作区代码的撤销和上面的步骤一样;提交到本地仓库的代码要撤销:
git  reset --hard  +版本号:实现版本回退
git  config --global  user.email "you\@example.com" 
git  config --global  user.name "Your Name" 
git  config --list 
git  remote set-url origin https://< your_token> @github.com/< USERNAME> /< REPO> .git