<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: amogh2019</title>
    <description>The latest articles on DEV Community by amogh2019 (@amogh2019).</description>
    <link>https://dev.to/amogh2019</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F896775%2F77e0dd34-e38d-4d0d-bdb9-e561dbc3b74c.png</url>
      <title>DEV Community: amogh2019</title>
      <link>https://dev.to/amogh2019</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amogh2019"/>
    <language>en</language>
    <item>
      <title>gitpod + commit with no reply email</title>
      <dc:creator>amogh2019</dc:creator>
      <pubDate>Mon, 20 Mar 2023 12:47:31 +0000</pubDate>
      <link>https://dev.to/amogh2019/gitpod-commit-with-no-reply-email-1bh6</link>
      <guid>https://dev.to/amogh2019/gitpod-commit-with-no-reply-email-1bh6</guid>
      <description>&lt;p&gt;Problem : &lt;br&gt;
Were not able to push commits from gitpod since i enabled email privacy in github, and gitpod was pushing commits with my private email.&lt;/p&gt;

&lt;p&gt;Soln :&lt;br&gt;
As mentioned on their account page&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can override Git author name and email per project by using the default environment variables GIT_AUTHOR_NAME, GIT_COMMITTER_NAME, GIT_AUTHOR_EMAIL and GIT_COMMITTER_EMAIL.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;upon setting both&lt;/p&gt;

&lt;p&gt;GIT_AUTHOR_EMAIL and GIT_COMMITTER_EMAIL to the &lt;em&gt;&lt;a href="mailto:your_no_reply_email_which_looks_like_username@users.noreply.github.com"&gt;your_no_reply_email_which_looks_like_username@users.noreply.github.com&lt;/a&gt;&lt;/em&gt;  commits were finally pushed with correct no reply email.&lt;/p&gt;

&lt;p&gt;gpg signing is still not solved. to-be-done later&lt;/p&gt;

</description>
    </item>
    <item>
      <title>setting up code editors on my machine</title>
      <dc:creator>amogh2019</dc:creator>
      <pubDate>Sun, 27 Nov 2022 14:09:15 +0000</pubDate>
      <link>https://dev.to/amogh2019/setting-up-code-editors-on-my-machine-1pdk</link>
      <guid>https://dev.to/amogh2019/setting-up-code-editors-on-my-machine-1pdk</guid>
      <description>&lt;ul&gt;
&lt;li&gt;for java
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sdk list java // to check which java version you want
sdk install java 19-open
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;install vscode // intellij
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo snap install intellij-idea-community --classic
sudo snap install code --classic
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;vscode &lt;br&gt;
// enable File&amp;gt;Autosave&lt;br&gt;
// add gitlens&lt;/p&gt;

&lt;p&gt;intellij community&lt;br&gt;
// add sonarlint // for java&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;check and make a sample commit in a repo and push // check the push is as desired&lt;/li&gt;
&lt;li&gt;checkout a sample repo&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>linux</category>
      <category>ubuntu</category>
      <category>opensource</category>
      <category>discuss</category>
    </item>
    <item>
      <title>setting gitconfig</title>
      <dc:creator>amogh2019</dc:creator>
      <pubDate>Sun, 27 Nov 2022 13:54:25 +0000</pubDate>
      <link>https://dev.to/amogh2019/setting-gitconfig-449a</link>
      <guid>https://dev.to/amogh2019/setting-gitconfig-449a</guid>
      <description>&lt;ul&gt;
&lt;li&gt;setting up my github username as name
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git config --global user.name "nameorusername"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;setting up my private no reply email as my email
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git config --global user.email "youremail/noreplygithubemail"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;telling git to use my gpg key, present on this computer and which is already added to my github account (check part 2 of this series) and always sign by default
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git config --global user.signingkey {{keyidinlongformat}}
git config --global commit.gpgsign true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;do a commit // check git log // check the latest commit // name and email is what you want, right?&lt;/li&gt;
&lt;li&gt;push on github // check commit is verified green&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>github</category>
      <category>beginners</category>
    </item>
    <item>
      <title>GPG keys to display your commits with green tick!</title>
      <dc:creator>amogh2019</dc:creator>
      <pubDate>Sun, 27 Nov 2022 08:01:32 +0000</pubDate>
      <link>https://dev.to/amogh2019/gpg-keys-to-display-your-commits-with-green-tick-2o8g</link>
      <guid>https://dev.to/amogh2019/gpg-keys-to-display-your-commits-with-green-tick-2o8g</guid>
      <description>&lt;p&gt;Ref : &lt;a href="https://docs.github.com/en/authentication/managing-commit-signature-verification" rel="noopener noreferrer"&gt;https://docs.github.com/en/authentication/managing-commit-signature-verification&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Managing commit signature verification&lt;br&gt;
GitHub will verify GPG, SSH, or S/MIME signatures so other people will know that your commits come from a trusted source. GitHub will automatically sign commits you make using the GitHub web interface.&lt;/p&gt;

&lt;p&gt;considering setup is from scratch&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;$ gpg --full-generate-key&lt;/li&gt;
&lt;li&gt;4096 length // 0 for no expiry // some passphrase
&lt;/li&gt;
&lt;li&gt;add your github account email only // use the no reply email if you are keeping email private&lt;/li&gt;
&lt;li&gt;once generated, test if key is present // gpg --list-secret-keys --keyid-format=long&lt;/li&gt;
&lt;li&gt;get the actual key using key id (from the above listing)
// gpg --armor --export thekeyid(look for sec rsa4096/{id})&lt;/li&gt;
&lt;li&gt;Copy your GPG key, beginning with -----BEGIN PGP PUBLIC KEY BLOCK----- and ending with -----END PGP PUBLIC KEY BLOCK-----.&lt;/li&gt;
&lt;li&gt;add to github&amp;gt;settings&amp;gt;access&amp;gt;GPG key&lt;/li&gt;
&lt;li&gt;tell git on local machine to sign commits using the gpg key created above // follow in 3rd part of this series i.e. next article&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If GPG commit fails&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;could be because gpg was password protected&lt;/li&gt;
&lt;li&gt;just run:  echo "test" | gpg --clearsign&lt;/li&gt;
&lt;li&gt;this would prompt for gpg password (and save in shell i guess)...such that later it doesnt prompt&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>emptystring</category>
    </item>
    <item>
      <title>SSH connection to Github</title>
      <dc:creator>amogh2019</dc:creator>
      <pubDate>Sun, 27 Nov 2022 07:28:55 +0000</pubDate>
      <link>https://dev.to/amogh2019/setting-up-laptop-ssh-connection-to-github-5039</link>
      <guid>https://dev.to/amogh2019/setting-up-laptop-ssh-connection-to-github-5039</guid>
      <description>&lt;p&gt;from my new machine, wanted to checkout my existing github repo and start making commits.&lt;/p&gt;

&lt;p&gt;how do I do connect to it via SSH? &lt;br&gt;
for ssh we would need a private and public key pair,&lt;br&gt;
private key we keep, and public key we let github know.&lt;/p&gt;

&lt;p&gt;lets do this&lt;/p&gt;

&lt;p&gt;setting this up on ubuntu / linux&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;assuming no existing key is present // generate ssh keypair
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ ssh-keygen -t ed25519 -C "your_email@example.com or username"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;add private key to ssh-agent // &lt;a href="https://docs.github.com/en/authentication/connecting-to-github-with-ssh/working-with-ssh-key-passphrases#about-passphrases-for-ssh-keys" rel="noopener noreferrer"&gt;why??&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ ssh-add ~/.ssh/id_ed25519
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;copy public key  and add to github account (settings&amp;gt;access&amp;gt;ssh keys)
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public key details is here
$ cat ~/.ssh/id_ed25519.pub
  # Then select and copy the contents of the id_ed25519.pub file
  # displayed in the terminal to your clipboard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;test ssh connection from terminal
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ ssh -T git@github.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ref : &lt;a href="https://docs.github.com/en/authentication/connecting-to-github-with-ssh/about-ssh" rel="noopener noreferrer"&gt;https://docs.github.com/en/authentication/connecting-to-github-with-ssh/about-ssh&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
