随笔分类 -  Git

git 使用、常用命令、问题等
摘要:1. 查看分支 git branch -a 2. 切换分支 git checkout [分支名称] 3. 新建分支,首先切换到需要拉取的分支上,然后使用下面任一命令即可 git checkout -b [分支名称] // 创建并切换分支 git branch [分支名称] 4. 将本地分支推送到远程 阅读全文
posted @ 2023-02-22 19:48 张哲Zeo 阅读(27) 评论(0) 推荐(0) 编辑
摘要:查看npm源: npm get registry 国内设置淘宝源: #官方:http://www.npmjs.org npm config set registry http://registry.npm.taobao.org 如果不想全局设置,也可安装时临时指定: npm install --re 阅读全文
posted @ 2022-07-12 10:53 张哲Zeo 阅读(144) 评论(0) 推荐(0) 编辑
摘要:1. git本地分支目录和远程服务器的分支目录不一样的同步方法 git remote update origin --prune 阅读全文
posted @ 2022-04-27 10:43 张哲Zeo 阅读(6) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示