Git Login Issues? Keeps Asking for a Username & Password? Permanently Set Credentials in Git Config

Поділитися
Вставка
  • Опубліковано 2 жов 2024

КОМЕНТАРІ • 19

  • @cuckoo242
    @cuckoo242 Місяць тому +1

    Sir, my organization has set LDAP password for Git lab ...but i am sometimes needed to share it with my colleagues which creates security problem as it is the same pwd for hr portal, system login etc. Is there any way I can set a different pwd for only Gitlab...so that it won't cause any problem

    • @cameronmcnz
      @cameronmcnz  Місяць тому

      Normally access tokens you could give to people would be the solution. Not sure how LDAP might make that more or less difficult though.

    • @cuckoo242
      @cuckoo242 Місяць тому +1

      @@cameronmcnz thanks alot sir, just wanted to confirm one point further, instead of username, my token name will be used and instead of pwd, the token secret key for login...am I correct.?..

  • @abs80900
    @abs80900 Місяць тому +1

    solved my problem, thank you so much

    • @cameronmcnz
      @cameronmcnz  Місяць тому

      Great to hear! This problem annoyed me so much!!

  • @squalazzo
    @squalazzo 8 місяців тому +3

    just use ssh key pairs, way safer...

    • @cameronmcnz
      @cameronmcnz  8 місяців тому

      How to set up SSH keys for Git is one of my most popular videos! Sadly, if you keep the public and private key in the same folder, it's not much safer than username and password in plain text in the .gitcredentials file.
      But agreed, fewer people trying to spoof SSH. It's often a progression for companies to get there.

    • @squalazzo
      @squalazzo 8 місяців тому +1

      @@cameronmcnz ish... Usernames and passwords could be stolen way easier than a private key you're supposed to have with the least permissions possible, in your own home directory... Unless you always use root on a shared server 😏

    • @cameronmcnz
      @cameronmcnz  8 місяців тому +1

      @@squalazzo I certainly can't argue that a plaintext Git username and password in your home directory in a .gitcredentials file isn't a major security concern. You're right about that! SSH is definitely my preference as well.

  • @Zwaggyz
    @Zwaggyz 6 місяців тому +1

    You really helped me here...Thank you!!

    • @cameronmcnz
      @cameronmcnz  6 місяців тому +1

      This was personally a frustrating issue. When I figured it out I immediately did this tutorial. When I see 1.3K views, I like to think I've helped over a thousand people avoid the massive frustration the darn git login personally put me through!
      Glad I could help. Thanks for viewing!

  • @CitizenCayne
    @CitizenCayne 5 місяців тому

    Awesome. the token works better. For whatever reason over the years ssh bums out sometimes. I cam here after fighting & search for why Git all of a sudden prompts me for password. Thank you!

  • @user-zl6yg1uv1c
    @user-zl6yg1uv1c Місяць тому

    this is the only tutorial u need to config git

  • @redwansikder3847
    @redwansikder3847 8 місяців тому +1

    Very helpful 🙂

    • @cameronmcnz
      @cameronmcnz  8 місяців тому

      Lots of Bitbucket and Gitlab users I know have complained about repeatedly being asked for git username and passwords. Hopefully this quick tutorial helps!

  • @kirillfedtsov
    @kirillfedtsov 8 місяців тому +1

    The tutorial I needed!

    • @cameronmcnz
      @cameronmcnz  8 місяців тому +1

      Funny, but this is a very commonly searched problem, and I've had Bitbucket users complain about repeatedly asked for git username and passwords. When I researched, there weren't a lot of resources on it. Hopefully this helps people!