{"id":174532,"date":"2019-05-14T12:32:26","date_gmt":"2019-05-14T12:32:26","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=174532"},"modified":"2026-02-13T13:02:49","modified_gmt":"2026-02-13T13:02:49","slug":"github-push-with-two-factor-authentication","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/","title":{"rendered":"Make &#8220;git pull\/push\/clone&#8221; work with two factor authentication"},"content":{"rendered":"\n<p>Today I face an issue when I was trying to push my recent changes on my GITHUB directory.\u00a0 I was getting an access authentication error even my details were correct.<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone wp-image-174537 size-full\"><img decoding=\"async\" width=\"923\" height=\"403\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-192.168.1.79-2019.05.14-16-01-40.png\" alt=\"Authentication Error\" class=\"wp-image-174537\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-192.168.1.79-2019.05.14-16-01-40.png 923w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-192.168.1.79-2019.05.14-16-01-40-250x109.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-192.168.1.79-2019.05.14-16-01-40-300x131.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-192.168.1.79-2019.05.14-16-01-40-768x335.png 768w\" sizes=\"(max-width: 923px) 100vw, 923px\" loading=\"lazy\" \/><figcaption>Authentication Error<\/figcaption><\/figure>\n\n\n\n<p>Then a bit searching a got to know that I am getting this error because of 2FA(two-factor authentication) is enabled in my account which I enabled a few days ago.<\/p>\n\n\n\n<p><span style=\"color: #0000ff;\">Basically, 2FA provides an extra layer of security used when logging into the account. For more details please refer to the<\/span> <a href=\"https:\/\/help.github.com\/en\/articles\/about-two-factor-authentication\">GITHUB TWO FACTOR AUTHENTICATION<\/a><\/p>\n\n\n\n<p>2FA requires user access token instead of the user password while running pull and push operation in <a href=\"https:\/\/github.com\">GITHUB<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Without 2FA<\/strong>\n<ul class=\"wp-block-list\">\n<li>$ git clone https:\/\/github.com\/ashish-webkul\/webkul-repo.git\n<ul class=\"wp-block-list\">\n<li><strong>Username<\/strong>: your_username<\/li>\n\n\n\n<li><strong>Password<\/strong>: your_password<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>With 2FA<\/strong>\n<ul class=\"wp-block-list\">\n<li>$ git clone https:\/\/github.com\/ashish-webkul\/webkul-repo.git\n<ul class=\"wp-block-list\">\n<li><strong>Username<\/strong>: your_username<\/li>\n\n\n\n<li><strong>Password<\/strong>: your_access_token<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Then first we need to know how to set up access token key on GITHUB account for the command line. Steps are given below,<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First of all, make sure your email-id should be verified. If not then verify first.<\/li>\n\n\n\n<li>Then go to the top right corner of your GITHUB account. Where you will see your profile picture. Click on that picture and then click on setting.<br><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image alignnone wp-image-174546 size-large\"><img decoding=\"async\" width=\"1200\" height=\"433\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-github.com-2019.05.14-16-27-15-1200x433.png\" alt=\"GITHUB Main Settings\" class=\"wp-image-174546\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-github.com-2019.05.14-16-27-15-1200x433.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-github.com-2019.05.14-16-27-15-250x90.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-github.com-2019.05.14-16-27-15-300x108.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-github.com-2019.05.14-16-27-15-768x277.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-github.com-2019.05.14-16-27-15.png 1293w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><figcaption>GITHUB Main Settings<\/figcaption><\/figure>\n\n\n\n<p>Then on the left side menubar, you will see <strong>Developer Setting<\/strong>&#8220;. Click on it and then click on <strong>&#8220;Personal access tokens&#8221;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/download-1.png\" alt=\"Developer Setting\" loading=\"lazy\" \/><figcaption>Developer Setting<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-4.png\" alt=\"Personal Access Token\" loading=\"lazy\" \/><figcaption>Personal Access Token<\/figcaption><\/figure>\n\n\n\n<p>Then you will see a button &#8220;<strong>Generate new token<\/strong>&#8220;. Click on that button to generate an access token,<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone wp-image-174565 size-full\"><img decoding=\"async\" width=\"753\" height=\"66\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/download-1-1.png\" alt=\"Token Menu\" class=\"wp-image-174565\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/download-1-1.png 753w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/download-1-1-250x22.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/download-1-1-300x26.png 300w\" sizes=\"(max-width: 753px) 100vw, 753px\" loading=\"lazy\" \/><figcaption>Token Menu<\/figcaption><\/figure>\n\n\n\n<p>Then after giving the access token name select the permission which you would like to give for that token.<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone wp-image-174568 size-full\"><img decoding=\"async\" width=\"784\" height=\"215\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-5.png\" alt=\"GITHUB Token Name\" class=\"wp-image-174568\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-5.png 784w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-5-250x69.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-5-300x82.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-5-768x211.png 768w\" sizes=\"(max-width: 784px) 100vw, 784px\" loading=\"lazy\" \/><figcaption>GITHUB Token Name<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image alignnone wp-image-174567 size-full\"><img decoding=\"async\" width=\"506\" height=\"662\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-6.png\" alt=\"Permissions\" class=\"wp-image-174567\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-6.png 506w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-6-190x249.png 190w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/Screenshot-6-229x300.png 229w\" sizes=\"(max-width: 506px) 100vw, 506px\" loading=\"lazy\" \/><figcaption>Select permissions for access tokens<\/figcaption><\/figure>\n\n\n\n<p>After that click on &#8220;<strong>Generate Token<\/strong>&#8220;. Then you token will appear on the window.<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone wp-image-174573 size-full\"><img decoding=\"async\" width=\"767\" height=\"316\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-github.com-2019.05.14-16-55-25.png\" alt=\"GITHUB Account Token\" class=\"wp-image-174573\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-github.com-2019.05.14-16-55-25.png 767w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-github.com-2019.05.14-16-55-25-250x103.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-github.com-2019.05.14-16-55-25-300x124.png 300w\" sizes=\"(max-width: 767px) 100vw, 767px\" loading=\"lazy\" \/><figcaption>GITHUB Account Token<\/figcaption><\/figure>\n\n\n\n<p>This is how you can create an access token.<\/p>\n\n\n\n<p><span style=\"color: #ff0000;\"><strong>NOTE: Keep your access token secret&nbsp;<\/strong><\/span><\/p>\n\n\n\n<p>Now you can use access token as your authentication password for GITHUB pull &amp; push operations.<\/p>\n\n\n\n<p><span style=\"color: #003366;\"><strong>We would love the hear your thoughts, suggestions, and questions in the comments below !!<\/strong><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I face an issue when I was trying to push my recent changes on my GITHUB directory.\u00a0 I was getting an access authentication error even my details were correct. Then a bit searching a got to know that I am getting this error because of 2FA(two-factor authentication) is enabled in my account which I <a href=\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":90,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5709,2007],"tags":[745,8524,188,1737,2871,8522,8521,7767,6437,1267,2063,8523,4158,590,1258],"class_list":["post-174532","post","type-post","status-publish","format-standard","hentry","category-akeneo","category-odoo","tag-access-token","tag-commit","tag-error","tag-git","tag-git-bash","tag-git-pull","tag-git-push","tag-github","tag-gitlab-webhook","tag-odoo","tag-openerp","tag-pull","tag-push","tag-webkul","tag-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Make &quot;git pull\/push\/clone&quot; work with two factor authentication - Webkul Blog<\/title>\n<meta name=\"description\" content=\"Webkul Blog Two factor authentication require user access token instead of the user password while running pull and push operation in GITHUB.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Make &quot;git pull\/push\/clone&quot; work with two factor authentication - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Webkul Blog Two factor authentication require user access token instead of the user password while running pull and push operation in GITHUB.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-14T12:32:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-13T13:02:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-192.168.1.79-2019.05.14-16-01-40.png\" \/>\n<meta name=\"author\" content=\"Ashish Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ashish Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/\"},\"author\":{\"name\":\"Ashish Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/3b92c698256ce0bcb9613acf8bbf5b2d\"},\"headline\":\"Make &#8220;git pull\/push\/clone&#8221; work with two factor authentication\",\"datePublished\":\"2019-05-14T12:32:26+00:00\",\"dateModified\":\"2026-02-13T13:02:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/\"},\"wordCount\":354,\"commentCount\":30,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-192.168.1.79-2019.05.14-16-01-40.png\",\"keywords\":[\"Access token\",\"commit\",\"error\",\"GIT\",\"git bash\",\"git pull\",\"git push\",\"Github\",\"GitLab Webhook\",\"odoo\",\"OpenERP\",\"pull\",\"push\",\"webkul\",\"wordpress\"],\"articleSection\":[\"Akeneo\",\"Odoo\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/\",\"url\":\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/\",\"name\":\"Make \\\"git pull\/push\/clone\\\" work with two factor authentication - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-192.168.1.79-2019.05.14-16-01-40.png\",\"datePublished\":\"2019-05-14T12:32:26+00:00\",\"dateModified\":\"2026-02-13T13:02:49+00:00\",\"description\":\"Webkul Blog Two factor authentication require user access token instead of the user password while running pull and push operation in GITHUB.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-192.168.1.79-2019.05.14-16-01-40.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-192.168.1.79-2019.05.14-16-01-40.png\",\"width\":923,\"height\":403,\"caption\":\"screenshot-192.168.1.79-2019.05.14-16-01-40\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Make &#8220;git pull\/push\/clone&#8221; work with two factor authentication\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/3b92c698256ce0bcb9613acf8bbf5b2d\",\"name\":\"Ashish Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ef2c82640f6054d8a8cfca9e3edd7edaf800ff1873b6d103c7bbf0b47dfefc1e?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ef2c82640f6054d8a8cfca9e3edd7edaf800ff1873b6d103c7bbf0b47dfefc1e?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Ashish Singh\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/ashish067\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Make \"git pull\/push\/clone\" work with two factor authentication - Webkul Blog","description":"Webkul Blog Two factor authentication require user access token instead of the user password while running pull and push operation in GITHUB.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/","og_locale":"en_US","og_type":"article","og_title":"Make \"git pull\/push\/clone\" work with two factor authentication - Webkul Blog","og_description":"Webkul Blog Two factor authentication require user access token instead of the user password while running pull and push operation in GITHUB.","og_url":"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2019-05-14T12:32:26+00:00","article_modified_time":"2026-02-13T13:02:49+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-192.168.1.79-2019.05.14-16-01-40.png","type":"","width":"","height":""}],"author":"Ashish Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Ashish Singh","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/"},"author":{"name":"Ashish Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/3b92c698256ce0bcb9613acf8bbf5b2d"},"headline":"Make &#8220;git pull\/push\/clone&#8221; work with two factor authentication","datePublished":"2019-05-14T12:32:26+00:00","dateModified":"2026-02-13T13:02:49+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/"},"wordCount":354,"commentCount":30,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-192.168.1.79-2019.05.14-16-01-40.png","keywords":["Access token","commit","error","GIT","git bash","git pull","git push","Github","GitLab Webhook","odoo","OpenERP","pull","push","webkul","wordpress"],"articleSection":["Akeneo","Odoo"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/","url":"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/","name":"Make \"git pull\/push\/clone\" work with two factor authentication - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-192.168.1.79-2019.05.14-16-01-40.png","datePublished":"2019-05-14T12:32:26+00:00","dateModified":"2026-02-13T13:02:49+00:00","description":"Webkul Blog Two factor authentication require user access token instead of the user password while running pull and push operation in GITHUB.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-192.168.1.79-2019.05.14-16-01-40.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/screenshot-192.168.1.79-2019.05.14-16-01-40.png","width":923,"height":403,"caption":"screenshot-192.168.1.79-2019.05.14-16-01-40"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/github-push-with-two-factor-authentication\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Make &#8220;git pull\/push\/clone&#8221; work with two factor authentication"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/3b92c698256ce0bcb9613acf8bbf5b2d","name":"Ashish Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ef2c82640f6054d8a8cfca9e3edd7edaf800ff1873b6d103c7bbf0b47dfefc1e?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef2c82640f6054d8a8cfca9e3edd7edaf800ff1873b6d103c7bbf0b47dfefc1e?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Ashish Singh"},"url":"https:\/\/webkul.com\/blog\/author\/ashish067\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/174532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/90"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=174532"}],"version-history":[{"count":12,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/174532\/revisions"}],"predecessor-version":[{"id":526487,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/174532\/revisions\/526487"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=174532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=174532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=174532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}