首页 > 其他分享 >常用git命令

常用git命令

时间:2022-09-23 16:34:51浏览次数:52  
标签:node 常用 git 删除 modules 命令 rimraf 分支

1.命令行删除 node_modules 文件
1)安装删除工具
npm install rimraf -g
2)执行删除命令
rimraf node_modules

2.更新远程分支

git remote update origin --prune

3.合并分支

git merge xxxx(分支名称)

 

标签:node,常用,git,删除,modules,命令,rimraf,分支
From: https://www.cnblogs.com/zhougx/p/16723189.html

相关文章

  • Git clone is not working suddenly with SSH connection in win 10
    Whendogitclone,italwaysshow [email protected]'spasswordWhenuseSSHprotocol,itisnotsupposetoshowthismessage,onlyenterprivatekeypassphrase......
  • 【Docker】Docker 基础知识及 cli 命令快查
    常用命令#显示docker信息$dockerinfo#显示容器列表$dockerps[-a]#拉取镜像$dockerpull#查看本地镜像$dockerimages#文件拷贝$dockercp......
  • gitlab部署
    目录gitlab部署gitlab管理gitlab部署//关闭防火墙和selinux[root@localhost~]#systemctldisable--nowfirewalld.serviceRemoved/etc/systemd/system/multi-use......
  • 启动hbase的命令
    启动hbase的命令1.关闭三台虚拟机的防火墙systemctlstopfirewalld2.开启zookeeper节点zkServer.shstart3.开启所有集群节点start-all.sh4.开启hbasestart-hbase.sh5......
  • Pycharm常用快捷键
    Pycharm常用快捷键一、常用快捷键:Ctrl+D复制选定的区域或行Ctrl+Y删除选定的行Ctrl+Alt+L代码格式化Ctrl+Alt+O......
  • Linux 命令
    查看Docker当前使用的Linux版本,在PowerShell终端执行以下命令:wsl--list--running重启WSL2分发Linux,注意重启后,Docker也要跟着重启wsl--shutdown......
  • spring常用框架
    https://spring.io/projectshttps://spring.io/projects/spring-cloudhttps://blog.csdn.net/MemoryTa/article/details/121481401 一、5个常用的spring框架1.spring......
  • 常用的函数式接口-Function接口-默认方法-andThen和Function练习-自定义函数模型拼接
    常用的函数式接口-Function接口-默认方法-andThenFunction接口中的默认方法andThen:用来进行组合操作需求:把String类型的"123",转换为Inteter类型,把转换后......
  • git常用命令
    1、如何克隆仓库代码到本地?命令:gitclonehttp://******2、如何创建新分支test?  命令:gitbranchtest3、查看本地分支?命令:gitbranch4、如何切换到分支test?命令......
  • 小乌龟(TortoiseGit)在push时总是要求输入密码的解决办法
    当你在用TortoiseGit拉取或者提交代码的时候,可能遇到过git小乌龟总是要让你输入密码,无法拉取、提交代码,见下图。怎么解决这个问题? 1.复制私钥文件id_rsa,将复制的文件......