书写技术成长之路

Git常用操作详解

  • 删除远程分支

    git push -d origin branch_name

    git branch -d branch_name

  • 暂存当前的代码

    git stash save -u "your comment message"

  • 应用并删除最新暂存区的代码

    git stash pop

  • 应用暂存区最新的代码

    git stash apply