Posts

Showing posts from September, 2023

Setting up SSH keys, Git to contribute to Drupal.org

SSH Keys:  https://www.drupal.org/drupalorg/docs/user-accounts/git-authentication-for-drupalorg-projects cd ~/.ssh ssh-keygen -t ed25519 -b 4096 -C " drupalcode.org " Enter the filename. Ex:  id_ed25519_drupalcode_org ssh-add ~/.ssh/ id_ed25519_drupalcode_org vim  id_ed25519_drupalcode_org.pub copy the contents and create a new key at  https://git.drupalcode.org/-/profile/keys Test:  ssh -T git@git.drupal.org You can also add ssh config file  vim ~/.ssh/config Save the below contents Host git.drupal.org   AddKeysToAgent yes   IdentityFile ~/.ssh/id_ed25519_drupal_org Configuring Git: https://www.drupal.org/docs/develop/git/setting-up-git-for-drupal/configuring-git-for-drupal Note: Configure your name and email address https://www.drupal.org/user/<your-id>/git Committing: Make sure username and email are correct in the folder you are committing > git config --list   credential.helper=osxkeychain init.defaultbranch=main user.email= gop...