# 添加所有文件到暂存区
git add .
# 拉取代码
git clone 代码地址
# 提交代码
git commit -m ‘注释’
# 拉取代码到工作区
git pull [remote] [branch]
# 将本地仓库代码推送到远程
git push [remote] [branch]
# 切换分支
git branch [branch-name]
# 新建一个分支,并切换到该分支
git checkout -b [branch]
# 可以用于vue的严谨模式,代码不能提交的情况
git commit -m "提交备注" --no-verify
# 强制将本地的代码推送到远端
git push -f origin master
git常见命令(强commit强push)
最新推荐文章于 2025-03-31 09:28:37 发布