{"componentChunkName":"component---src-templates-blog-template-js","path":"/setup-different-git-aliases-windows","result":{"data":{"site":{"siteMetadata":{"title":"Stop Covid19"}},"markdownRemark":{"html":"<h1>How to setup different git aliases (github or gitlab) in windows.</h1>\n<ul>\n<li>open up your terminal in root level</li>\n<li><code class=\"language-text\">enter filename in which you want to save you key. (Recommended: append you company name after id_rsa_company and copy the full file path</code></li>\n<li>\n<p><code class=\"language-text\">open ssh config and create a new host for the new git account of your company</code></p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">#CD-webapp\nHost cd-webapp\nHostName gitlab.com\nUser git\nIdentityFile ~/.ssh/webapp</code></pre></div>\n</li>\n<li>use this host name when you pull from your new account</li>\n<li>\n<p>set user name and email in local config of your repo</p>\n<p>git config --local user.name 'dev'</p>\n<p>git config --local user.email 'dev@gmail.com'</p>\n</li>\n<li>Now you are all setup to push and pull from your new account</li>\n</ul>","frontmatter":{"date":"April 04, 2021","path":"/setup-different-git-aliases-windows","title":"How to setup different git aliases in windows","thumbnail":"/assets/post2_1.jpg","metaDescription":null}}},"pageContext":{}}}