Git Product home page Git Product logo

Comments (4)

mhkeller avatar mhkeller commented on May 29, 2024 1

Sorry for the delay on this and for the problem in the first place! The short answer is I wasn't accounting for running a remove action without a clone action first. So what was happening was:

  1. You clone down your repo
  2. You files are stashed because degit assumed the files in your repo were the final ones you wanted
  3. It runs your remove command but things are stashed so nothing happens
  4. Your files get unstashed and you get your original files

The use case I was designing for is

  1. Same as above
  2. Same as above
  3. I figured you would have a clone command here to bring in some new files
  4. You have a remove command here to get rid of files from step three
  5. Your files get unstashed and you get your original files, overwriting any files currently in your directory from step 3 since degit assumes files that you began with are the ones you want to end with

This isn't how it should work though and you should be able to remove files locally first, as I had said was possible.

This PR fixes the issue with more sensible stashing / unstashing and better explains the desired logic: #65 Let me know what you think!

from degit.

YogliB avatar YogliB commented on May 29, 2024

I assumed that the use case you describe is the one the action is intended for, am I wrong?

from degit.

osdevisnot avatar osdevisnot commented on May 29, 2024

That's absolutely correct. The action is intended for removing list of files.

from degit.

YogliB avatar YogliB commented on May 29, 2024

@mhkeller ?

from degit.

Related Issues (20)

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.