赞
踩
- 从工作区添加到暂存区:git add .
- 从暂存区添加到本地仓库:git commit -m “注释内容”
- 查看当前状态:git status
- 查看提交日志:git log
- 拉取项目代码:git clone 仓库路径
- 版本切换:git reset --hard commitID
- 注:commitID可以通过 git log命令 进行查看
- 查看已经删除的记录:git reflog
- 查看本地分支:git branch
- 创建本地分支:git branch 分支名
- 切换分支:git checkout 分支名
- 合并分支:git merge 分支名称
- 添加远程仓库:git remote add origin 仓库路径
- 查看远程仓库:git remote
- 推送到远程仓库:git push origin 分支名称
- 从远程仓库克隆:git clone 仓库路径
- 拉取远程仓库代码:git pull
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。