回退到某个版本的节点
git reset --hard sdfsfa234242sdfs

获取版本ptach包
fetch asdfaf12313131sdfs


创建并切换到新分支
git checkout -b newbranch

将新分支推送到远程服务器
git push origin newbranch

在本地删除一个分支
git branch -d newbranch
本地删除新建分支后推送到远程服务器
git push origin :newbranch

更新远程分支列表:
git remote update origin -p

设置仓库地址:
git remote set-url origin gitlab@xxxxxxx

回退莫个节点:
git revert sdfsfa234242sdfs
查看一行信息节点:
git log --oneline

查看某些被忽略的相关文件:
git status --ignored

如有忽略的相关的文件无法提交:
git add -f file
查看提交信息区分大小写
git log --grep=camera -i

本地分支重命名:
git branch -m oldName newName

删除远程的旧分支:
git push --delete origin oldName


git cherry-pick commit_id
退回:
git cherry-pick --abort

提交所删除的信息和相关的文件:
git add file --all