Skip to content

git 命令-记录 | Hexo #1

@pandaomeng

Description

@pandaomeng

http://www.pandaomeng.com/2018/11/19/2018/2018-11-19-git_command/

git 命令-记录 强制同步(让本地和远端一致) 线上服务器出现: 您的分支领先 'origin/master' 共 1 个提交。 原因:改动了线上服务器的文件,导致和orgin端的master出现了偏离。 处理方法:丢弃修改,强制与oring/master 一致 123git fetch --allgit reset --hard origin/mastergit pull

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions