Git Product home page Git Product logo

Comments (7)

EndBug avatar EndBug commented on May 26, 2024 1

I've created a new issue just for that, I will add it soon. For now, I'll close this one.

from add-and-commit.

EndBug avatar EndBug commented on May 26, 2024

I think this comes from the fact that you're using the force option with a *.* matcher, and that makes git try to commit those files too (which it shouldn't since they're supposed to be local).
I guess you could just try using *.txt as the pattern.

from add-and-commit.

DmitrijOkeanij avatar DmitrijOkeanij commented on May 26, 2024

Now get this
image
And the second question how to upload all files.
start * as pattern is not working too.

from add-and-commit.

EndBug avatar EndBug commented on May 26, 2024

That is because the token you're using doesn't give the permissions to push to the second repository: the default GITHUB_TOKEN secret is meant to be used only with the repo the workflow is running in.
I think you need to create a custom GitHub token: you can find out how to do it here.

To add all the files you can either:

  • Use *.* as the pattern but without the force option
  • Use a pattern that excludes the .git folder: it may be something like ./!(.git)/*.*, but I'm not sure about that

Anyway, try searching that on Google/StackOverflow/..., I'm sure you'll find something that works for you: the action uses a standard find command, these are the lines with the commands if you need them.

from add-and-commit.

DmitrijOkeanij avatar DmitrijOkeanij commented on May 26, 2024

I am not sure that this is possible to exclude something in linux find commend using pattern.
All answers like this and propose to use -not -path arguments witch is not possible using here.

find -name "*.js" -not -path "./directory/*"

May be to add code of ignoring .git folder to this repo, or to make some arguments to allow exclusions to find?

from add-and-commit.

EndBug avatar EndBug commented on May 26, 2024

@all-contributors please add @DmitrijOkeanij for ideas

from add-and-commit.

allcontributors avatar allcontributors commented on May 26, 2024

@EndBug

I've put up a pull request to add @DmitrijOkeanij! 🎉

from add-and-commit.

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.