赞
踩
Git命令
git status // 当前工作区状态
git add -A // 添加到版本库
git commit -m"提交日志" // 提交
git log -10 --oneline // 显示日志
git rebase -i da7d960 //把多个提交点合并成一个提交点
git fetch
git pull orgin xxxx 从远程分支拉代码
git reset --hard 3b2bccc 还原到*提交点
git checkout xxx 切换到分支
git branch -D xxx 删除分支
git checkout origin/xxx -b aaa 创建新分支并切换到新分支
git rebase xxx 合并代码
git push origin dev_xxx:xxxx 推代码到远**dev_xxx:xxxx**之间不要有空格,有空格会把远程分支删除!!!!!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。