Giter Site home page Giter Site logo

clean-git's Introduction

# clean-git README

这是一个帮你一键管理本地git分支的vscode插件,当你在开发时,可能会有需要迭代更新,迭代更新完毕后,有许多不需要的本地分支,不需要执行复杂的git branch -D 命令清除,只需点击一键即可清除

tips:如果需要自己开发请安装官方脚手架

插件开发官方示例库:https://github.com/microsoft/vscode-extension-samples

插件开发官方API文档:https://code.visualstudio.com/api/references/vscode-api

1.打开vscode,安装依赖

执行npm install 之后按F5即可开发调试模式

2.执行打包任务

2.1首先需要安装 vsce工具

npm install -g @vscode/vsce

2.2 执行命令 vsce package

3.生成VSIX文件

执行第二步后会生成一个VSIX文件,如需发布插件可按照如下方式:

将插件发布到插件市场必须使用令牌方式发布,需要根据官方指南( https://code.visualstudio.com/api/working-with-extensions/publishing-extension)先创建自己的组织,然后创建个人令牌并记住令牌。

这里我们采用安装到本地即可

4.安装到vscode

image-20231023103058656

选择我们刚刚生成的VSIX文件即可

5.切换到项目主分支或缺省分支

切换到项目主分支或者默认分支,例如master,main等

6.执行一键清除

image-20231023103157764

image-20231023103252067

切换分支后点击一键清理,这时会提示是否处于默认分支,选择是即可完成一键清理以及一键拉取最新代码

Enjoy!

clean-git's People

Contributors

qhl123456 avatar

Stargazers

Leo avatar

Watchers

 avatar

clean-git's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.