zoukankan      html  css  js  c++  java
  • Git常用命令

    1、更改远程仓库地址

    git remote set-url origin 远程仓库地址
    

    2、储藏git stash

    git stash  储藏当前的本地修改
    git stash save [message]    储藏当前本地修改,附上备注信息
    git stash drop stash@{0} 删除第一个队列 git stash apply 应用最新的储藏 git stash apply [id] 应用指定的储藏

    3、撤销本地修改

    git checkout --filename    撤销某个文件的修改
    git checkout .     撤销所有修改
    

     4、合并某个文件

    git checkout --patch B_branch f.txt
    

    5、删除远程已经删除过的分支

    git remote prune origin

    6、删除远程tag

    git push origin :refs/tags/v0.1
    

    7、打tag

    git tag -a v0.1 -m "v0.1"
    git push origin --tags
    

      

  • 相关阅读:
    HTML5 ④
    HTML5 ③
    HTML5 ②
    HTML5 ①
    what’s this?
    第一篇
    2017年3月1号课堂笔记
    2017年2月27号课堂笔记
    2017年2月24号课堂笔记
    2017.02.15课堂笔记
  • 原文地址:https://www.cnblogs.com/gentlemanwuyu/p/10369051.html
Copyright © 2011-2022 走看看