标签:add clone one -o bsp ash stash reset set
git add . #添加全部文件到暂存区 ,git add file,
git commit -m "信息"
git ls-files -s 查看暂存区文件
git ls-tree master 查看master 分区 文件
git rm file 删除工作目录,跟暂存区文件。
git checkout --file 从本地版本库下载文件覆盖暂存区,工作 目录,git checkout 。 从版本库覆盖所有暂存区,工作目录文件
git reset --hard 版本号 还原之前版本。
git reflog 列举历史版本
git stash 暂存状态, git stash pop git stash drop
git log --online
git branch name 创建分支name
git checkout name 切换分支name
git checkout -b name 创建分区并切换到name
git push
git pull
git clone
标签:add clone one -o bsp ash stash reset set
原文地址:https://www.cnblogs.com/libing029/p/10798783.html