Giter VIP home page Giter VIP logo

Comments (3)

TheLocehiliosan avatar TheLocehiliosan commented on May 13, 2024 1

This behavior is intended.

Most yadm users already have these options in a "global" Git configuration. Indeed, running the Git commands suggested by the "Tell me who you are" message would solve this problem by creating a "global" configuration.

The suggestion you made above creates these configurations local to the yadm repository. That can be done more simply using a yadm gitconfig command. However, a "global" config option is a better choice (particularly if the .gitconfig is managed by yadm because it will not have to be configured every time the repo is cloned.

The preferred solutions to your problem would be one of these:

  1. Set "global" configuration options in ~/.gitconfig

    git config --global "user.email" "your-email@domain"
    git config --global "user.name"  "Your Name"
    

    or

    yadm gitconfig --global "user.email" "your-email@domain"
    yadm gitconfig --global "user.name"  "Your Name"
    
  2. Set "repo-only" configuration options in the yadm repo

    yadm gitconfig "user.email" "your-email@domain"
    yadm gitconfig "user.name"  "Your Name"
    

The second option accomplishes the same result as your initial suggestion, although it is done using yadm gitconfig commands. Again, this second solution would need to be done each time you clone the repository.

from yadm.

karma0 avatar karma0 commented on May 13, 2024

For others: I was able to circumvent the issue by doing the following:

cd ~/.yadm/repo.git
git config --local user.email [email protected]
git config --local user.name Bobby
cd -
yadm commit -am "Initializing"

from yadm.

TheLocehiliosan avatar TheLocehiliosan commented on May 13, 2024

Thanks for bringing up a possibly confusing point for users. I will add some of this information to the online documentation.

from yadm.

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.