lezzo.org/lain_gif/how-to-save-username-and-password-in-git
2021-06-09 15:01:42 +01:00

6239 lines
400 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html itemscope itemtype="https://schema.org/QAPage" class="html__responsive html__fixed-top-bar">
<head>
<title>credentials - How to save username and password in Git? - Stack Overflow</title>
<link rel="shortcut icon" href="https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196">
<link rel="apple-touch-icon" href="https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a">
<link rel="image_src" href="https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a">
<link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="/opensearch.xml">
<link rel="canonical" href="https://stackoverflow.com/questions/35942754/how-to-save-username-and-password-in-git" />
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0">
<meta property="og:type" content= "website" />
<meta property="og:url" content="https://stackoverflow.com/questions/35942754/how-to-save-username-and-password-in-git"/>
<meta property="og:site_name" content="Stack Overflow" />
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon@2.png?v=73d79a89bded" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:domain" content="stackoverflow.com"/>
<meta name="twitter:title" property="og:title" itemprop="name" content="How to save username and password in Git?" />
<meta name="twitter:description" property="og:description" itemprop="description" content="I want to use a push and pull automatically in GitExtension, SourceTree or any other Git GUI without entering my user and password in a prompt, every time.&#xA;So how can I save my credentials in git?" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdn.sstatic.net/Js/stub.en.js?v=b6b81fff6fef"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.sstatic.net/Shared/stacks.css?v=18ec1a31c3b1">
<link rel="stylesheet" type="text/css" href="https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=8e3102318e07">
<link rel="alternate" type="application/atom+xml" title="Feed for question &#x27;How to save username and password in Git?&#x27;" href="/feeds/question/35942754">
<meta name="twitter:app:country" content="US" />
<meta name="twitter:app:name:iphone" content="Stack Exchange iOS" />
<meta name="twitter:app:id:iphone" content="871299723" />
<meta name="twitter:app:url:iphone" content="se-zaphod://stackoverflow.com/questions/35942754/how-to-save-username-and-password-in-git" />
<meta name="twitter:app:name:ipad" content="Stack Exchange iOS" />
<meta name="twitter:app:id:ipad" content="871299723" />
<meta name="twitter:app:url:ipad" content="se-zaphod://stackoverflow.com/questions/35942754/how-to-save-username-and-password-in-git" />
<meta name="twitter:app:name:googleplay" content="Stack Exchange Android">
<meta name="twitter:app:url:googleplay" content="https://stackoverflow.com/questions/35942754/how-to-save-username-and-password-in-git">
<meta name="twitter:app:id:googleplay" content="com.stackexchange.marvin">
<script>
StackExchange.ready(function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.initSnippetRenderer();
});
StackExchange.using("postValidation", function () {
StackExchange.postValidation.initOnBlurAndSubmit($('#post-form'), 2, 'answer');
});
StackExchange.question.init({showAnswerHelp:true,totalCommentCount:3,shownCommentCount:3,enableTables:true,questionId:35942754});
styleCode();
StackExchange.realtime.subscribeToQuestion('1', '35942754');
StackExchange.using("gps", function () { StackExchange.gps.trackOutboundClicks('#content', '.js-post-body'); });
});
</script>
<link rel="stylesheet" type="text/css" href="https://cdn.sstatic.net/Shared/Channels/channels.css?v=89163e79f6d2">
<script>
StackExchange.init({"locale":"en","serverTime":1623163467,"routeName":"Questions/Show","stackAuthUrl":"https://stackauth.com","networkMetaHostname":"meta.stackexchange.com","site":{"name":"Stack Overflow","description":"Q&A for professional and enthusiast programmers","isNoticesTabEnabled":true,"enableNewTagCreationWarning":true,"insertSpaceAfterNameTabCompletion":false,"id":1,"cookieDomain":".stackoverflow.com","childUrl":"https://meta.stackoverflow.com","styleCodeWithHighlightjs":true,"negativeVoteScoreFloor":null,"enableSocialMediaInSharePopup":true,"protocol":"https"},"user":{"fkey":"2ec54a34957d844e3d2507cc657ff2b5daa521a3dc5c5fb76c921550acfc7a0e","tid":"cc2542ad-e8db-0871-b816-60f25013b68f","rep":0,"isAnonymous":true,"isAnonymousNetworkWide":true},"events":{"postType":{"question":1},"postEditionSection":{"title":1,"body":2,"tags":3}},"story":{"minCompleteBodyLength":75,"likedTagsMaxLength":300,"dislikedTagsMaxLength":300},"jobPreferences":{"maxNumDeveloperRoles":2,"maxNumIndustries":4},"svgIconPath":"https://cdn.sstatic.net/Img/stacks-icons","svgIconHash":"3366547373af"}, {"userProfile":{"openGraphAPIKey":"4a307e43-b625-49bb-af15-ffadf2bda017"},"userMessaging":{"showNewFeatureNotice":true},"tags":{},"subscriptions":{"defaultBasicMaxTrueUpSeats":250,"defaultFreemiumMaxTrueUpSeats":50,"defaultMaxTrueUpSeats":1000},"snippets":{"renderDomain":"stacksnippets.net","snippetsEnabled":true},"site":{"allowImageUploads":true,"enableImgurHttps":true,"enableUserHovercards":true,"forceHttpsImages":true,"styleCode":true},"questions":{"enableQuestionTitleLengthLiveWarning":true,"maxTitleSize":150,"questionTitleLengthStartLiveWarningChars":50},"intercom":{"appId":"inf0secd","hostBaseUrl":"https://stacksnippets.net"},"paths":{},"monitoring":{"clientTimingsAbsoluteTimeout":30000,"clientTimingsDebounceTimeout":1000},"mentions":{"maxNumUsersInDropdown":50},"markdown":{"enableTables":true},"legal":{"oneTrustConfigId":"c3d9f1e3-55f3-4eba-b268-46cee4c6789c"},"flags":{"allowRetractingCommentFlags":true,"allowRetractingFlags":true},"elections":{"opaVoteResultsBaseUrl":"https://www.opavote.com/results/"},"comments":{},"accounts":{"currentPasswordRequiredForChangingStackIdPassword":true}});
StackExchange.using.setCacheBreakers({"js/adops.en.js":"22a9bd59b1e9","js/ask.en.js":"469e6156d3bf","js/begin-edit-event.en.js":"b6f47dd7a88c","js/copy-transpiled.en.js":"53672acce46d","js/cm.en.js":"490f304371e5","js/events.en.js":"911c3f5e9f4d","js/explore-qlist.en.js":"a6f836ff8aa6","js/full-anon.en.js":"def82872b4a7","js/full.en.js":"3d9e6a3e275b","js/help.en.js":"2c6f9524a8ea","js/highlightjs-loader.en.js":"620aed314835","js/inline-tag-editing.en.js":"e5a2bcfcd89d","js/keyboard-shortcuts.en.js":"065d00c0709b","js/markdown-it-loader.en.js":"2e311abea8d2","js/modElections.en.js":"7b9cd81fffcf","js/mobile.en.js":"ed3df618ee8f","js/moderator.en.js":"b4d8fa162399","js/postCollections-transpiled.en.js":"844f16f7e0e9","js/post-validation.en.js":"261eaf2537b3","js/prettify-full.en.js":"6f5a86d2d8da","js/question-editor.en.js":"","js/review.en.js":"2aa278d53a5c","js/review-v2-transpiled.en.js":"5a82478368a8","js/revisions.en.js":"d1bd84a6d22d","js/stacks-editor.en.js":"3d8c09d66412","js/tageditor.en.js":"f9c50de68213","js/tageditornew.en.js":"8f067b22d8ab","js/tagsuggestions.en.js":"a9ff449efcdc","js/unlimited-transpiled.en.js":"00fd937afdbd","js/wmd.en.js":"5134c267a712","js/snippet-javascript-codemirror.en.js":"e640df7f27cf"});
StackExchange.using("gps", function() {
StackExchange.gps.init(false);
});
</script>
<noscript id="noscript-css"><style>body,.top-bar{margin-top:1.9em}</style></noscript>
</head>
<body class="question-page unified-theme">
<div id="notify-container"></div>
<div id="custom-header"></div>
<header class="top-bar js-top-bar top-bar__network">
<div class="wmx12 mx-auto grid ai-center h100" role="menubar">
<div class="-main grid--cell">
<a href="#" class="left-sidebar-toggle p0 ai-center jc-center js-left-sidebar-toggle" role="menuitem" aria-haspopup="true" aria-controls="left-sidebar" aria-expanded="false"><span class="ps-relative"></span></a>
<div class="topbar-dialog leftnav-dialog js-leftnav-dialog dno">
<div class="left-sidebar js-unpinned-left-sidebar" data-can-be="left-sidebar" data-is-here-when="sm"></div>
</div>
<a href="https://stackoverflow.com" class="-logo js-gps-track"
data-gps-track="top_nav.click({is_current:false, location:2, destination:8})">
<span class="-img _glyph">Stack Overflow</span>
</a>
</div>
<ol class="list-reset grid gs4" role="presentation">
<li class="grid--cell md:d-none">
<a href="/company" class="-marketing-link js-gps-track"
data-gps-track="top_nav.products.click({location:2, destination:7})"
data-ga="[&quot;top navigation&quot;,&quot;about menu click&quot;,null,null,null]">About</a>
</li>
<li class="grid--cell">
<a href="#"
class="-marketing-link js-gps-track js-products-menu"
aria-controls="products-popover"
data-controller="s-popover"
data-action="s-popover#toggle"
data-s-popover-placement="bottom"
data-s-popover-toggle-class="is-selected"
data-gps-track="top_nav.products.click({location:2, destination:1})"
data-ga="[&quot;top navigation&quot;,&quot;products menu click&quot;,null,null,null]">
Products
</a>
</li>
<li class="grid--cell md:d-none">
<a href="/teams" class="-marketing-link js-gps-track"
data-gps-track="top_nav.products.click({location:2, destination:7})"
data-ga="[&quot;top navigation&quot;,&quot;learn more - teams&quot;,null,null,null]">For Teams</a>
</li>
</ol>
<div class="s-popover ws2 mtn2 p0"
id="products-popover"
role="menu"
aria-hidden="true">
<div class="s-popover--arrow"></div>
<ol class="list-reset s-anchors s-anchors__inherit">
<li class="m6">
<a href="/questions" class="bar-sm p6 d-block h:bg-black-100 js-gps-track"
data-gps-track="top_nav.products.click({location:2, destination:2})"
data-ga="[&quot;top navigation&quot;,&quot;public qa submenu click&quot;,null,null,null]">
<span class="fs-body1 d-block">Stack Overflow</span>
<span class="fs-caption d-block fc-light">Public questions &amp; answers</span>
</a>
</li>
<li class="m6">
<a href="/teams" class="bar-sm p6 d-block h:bg-black-100 js-gps-track"
data-gps-track="top_nav.products.click({location:2, destination:3})"
data-ga="[&quot;top navigation&quot;,&quot;teams submenu click&quot;,null,null,null]">
<span class="fs-body1 d-block">Stack Overflow for Teams</span>
<span class="fs-caption d-block fc-light">Where developers &amp; technologists share private knowledge with coworkers</span>
</a>
</li>
<li class="m6">
<a href="/jobs?so_source=ProductsMenu&so_medium=StackOverflow" class="bar-sm p6 d-block h:bg-black-100 js-gps-track"
data-gps-track="top_nav.products.click({location:2, destination:9})"
data-ga="[&quot;top navigation&quot;,&quot;jobs submenu click&quot;,null,null,null]">
<span class="fs-body1 d-block">Jobs</span>
<span class="fs-caption d-block fc-light">Programming &amp; related technical career opportunities</span>
</a>
</li>
<li class="m6">
<a href="https://stackoverflow.com/talent" class="bar-sm p6 d-block h:bg-black-100 js-gps-track"
data-gps-track="top_nav.products.click({location:2, destination:5})"
data-ga="[&quot;top navigation&quot;,&quot;talent submenu click&quot;,null,null,null]">
<span class="fs-body1 d-block">Talent</span>
<span class="fs-caption d-block fc-light">Recruit tech talent &amp; build your employer brand</span>
</a>
</li>
<li class="m6">
<a href="https://stackoverflow.com/advertising" class="bar-sm p6 d-block h:bg-black-100 js-gps-track"
data-gps-track="top_nav.products.click({location:2, destination:6})"
data-ga="[&quot;top navigation&quot;,&quot;advertising submenu click&quot;,null,null,null]">
<span class="fs-body1 d-block">Advertising</span>
<span class="fs-caption d-block fc-light">Reach developers &amp; technologists worldwide</span>
</a>
</li>
<li class="bg-black-025 bt bc-black-075 py6 px6 bbr-sm">
<a href="/company" class="fc-light d-block py6 px6 h:fc-black-800 js-gps-track"
data-gps-track="top_nav.products.click({location:2, destination:7})"
data-ga="[&quot;top navigation&quot;,&quot;about submenu click&quot;,null,null,null]">About the company</a>
</li>
</ol>
</div>
<form id="search" role="search" action=/search class="grid--cell fl-grow1 searchbar px12 js-searchbar " autocomplete="off">
<div class="ps-relative">
<input name="q"
type="text"
placeholder="Search&#x2026;"
value=""
autocomplete="off"
maxlength="240"
class="s-input s-input__search js-search-field "
aria-label="Search"
aria-controls="top-search"
data-controller="s-popover"
data-action="focus->s-popover#show"
data-s-popover-placement="bottom-start"/>
<svg aria-hidden="true" class="s-input-icon s-input-icon__search svg-icon iconSearch" width="18" height="18" viewBox="0 0 18 18"><path d="m18 16.5-5.14-5.18h-.35a7 7 0 10-1.19 1.19v.35L16.5 18l1.5-1.5zM12 7A5 5 0 112 7a5 5 0 0110 0z"/></svg>
<div class="s-popover p0 wmx100 wmn4 sm:wmn-initial js-top-search-popover" id="top-search" role="menu">
<div class="s-popover--arrow"></div>
<div class="js-spinner p24 grid ai-center jc-center d-none">
<div class="s-spinner s-spinner__sm fc-orange-400">
<div class="v-visible-sr">Loading&#x2026;</div>
</div>
</div>
<span class="v-visible-sr js-screen-reader-info"></span>
<div class="js-ac-results overflow-y-auto hmx3 d-none"></div>
<div class="js-search-hints" aria-describedby="Tips for searching"></div>
</div>
</div>
</form>
<ol class="overflow-x-auto ml-auto -secondary grid ai-center list-reset h100 user-logged-out" role="presentation">
<li class="-item searchbar-trigger"><a href="#" class="-link js-searchbar-trigger" role="button" aria-label="Search" aria-haspopup="true" aria-controls="search" title="Click to show search"><svg aria-hidden="true" class="svg-icon iconSearch" width="18" height="18" viewBox="0 0 18 18"><path d="m18 16.5-5.14-5.18h-.35a7 7 0 10-1.19 1.19v.35L16.5 18l1.5-1.5zM12 7A5 5 0 112 7a5 5 0 0110 0z"/></svg></a></li>
<li class="-ctas">
<a href="https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f35942754%2fhow-to-save-username-and-password-in-git" class="login-link s-btn s-btn__filled py8 js-gps-track" rel="nofollow"
data-gps-track="login.click" data-ga="[&quot;top navigation&quot;,&quot;login button click&quot;,null,null,null]">Log in</a>
<a href="https://stackoverflow.com/users/signup?ssrc=head&returnurl=%2fusers%2fstory%2fcurrent" class="login-link s-btn s-btn__primary py8" rel="nofollow" data-ga="[&quot;sign up&quot;,&quot;Sign Up Navigation&quot;,&quot;Header&quot;,null,null]">Sign up</a>
</li>
<li class="js-topbar-dialog-corral" role="presentation">
<div class="topbar-dialog siteSwitcher-dialog dno" role="menu">
<div class="header">
<h3>
<a href="https://stackoverflow.com">current community</a>
</h3>
</div>
<div class="modal-content bg-powder-050">
<ul class="current-site">
<li class="grid">
<div class="fl1">
<a href="https://stackoverflow.com"
class="current-site-link site-link js-gps-track grid gs8 gsx"
data-id="1"
data-gps-track="site_switcher.click({ item_type:3 })">
<div class="favicon favicon-stackoverflow site-icon grid--cell" title="Stack Overflow"></div>
<span class="grid--cell fl1">
Stack Overflow
</span>
</a>
</div>
<div class="related-links">
<a href="https://stackoverflow.com/help" class="js-gps-track" data-gps-track="site_switcher.click({ item_type:14 })">help</a>
<a href="https://chat.stackoverflow.com/?tab=site&amp;host=stackoverflow.com" class="js-gps-track" data-gps-track="site_switcher.click({ item_type:6 })">chat</a>
</div>
</li>
<li class="related-site grid">
<div class="L-shaped-icon-container">
<span class="L-shaped-icon"></span>
</div>
<a href="https://meta.stackoverflow.com"
class=" site-link js-gps-track grid gs8 gsx"
data-id="552"
data-gps-track="site.switch({ target_site:552, item_type:3 }),site_switcher.click({ item_type:4 })">
<div class="favicon favicon-stackoverflowmeta site-icon grid--cell" title="Meta Stack Overflow"></div>
<span class="grid--cell fl1">
Meta Stack Overflow
</span>
</a>
</li>
</ul>
</div>
<div class="header" id="your-communities-header">
<h3>
your communities </h3>
</div>
<div class="modal-content" id="your-communities-section">
<div class="call-to-login">
<a href="https://stackoverflow.com/users/signup?ssrc=site_switcher&amp;returnurl=%2fusers%2fstory%2fcurrent" class="login-link js-gps-track" data-gps-track="site_switcher.click({ item_type:10 })">Sign up</a> or <a href="https://stackoverflow.com/users/login?ssrc=site_switcher&amp;returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f35942754%2fhow-to-save-username-and-password-in-git" class="login-link js-gps-track" data-gps-track="site_switcher.click({ item_type:11 })">log in</a> to customize your list. </div>
</div>
<div class="header">
<h3><a href="https://stackexchange.com/sites">more stack exchange communities</a>
</h3>
<a href="https://stackoverflow.blog" class="fr">company blog</a>
</div>
<div class="modal-content">
<div class="child-content"></div>
</div>
</div>
</li>
</ol>
</div>
</header>
<script>
StackExchange.ready(function () { StackExchange.topbar.init(); });
StackExchange.scrollPadding.setPaddingTop(50, 10); </script>
<div id="announcement-banner" class="js-announcement-banner bg-black-700 fc-white ff-sans fs-body2 py2"
data-campaign="2021-05-25.dev-survey-2021" data-cookie="notice-dsv" data-expire-date="1624456800000">
<div class="grid jc-space-between wmx12 mx-auto px16 py8">
<div class="grid--cell mr12">
People who code: we want your input. <a target="_blank"
class="s-link js-link js-gps-track fw-bold fc-blue-400" href="/dev-survey/start?utm_source=so-owned&amp;utm_medium=announcement-banner&amp;utm_campaign=dev-survey-2021" data-ga="[&quot;dev-survey-2021&quot;,&quot;Announcement Banner&quot;,&quot;/dev-survey/start?utm_source=so-owned&amp;utm_medium=announcement-banner&amp;utm_campaign=dev-survey-2021&quot;,null,{&quot;dimension4&quot;:&quot;dev-survey-2021&quot;}]"
data-gps-track="announcement_banner.click({campaign: &#x27;2021-05-25.dev-survey-2021&#x27;, location: 2, action: 2})">Take the Survey</a>
</div>
<a class="grid-cell fc-white js-dismiss js-gps-track" href="#" title="dismiss"
data-gps-track="announcement_banner.click({campaign: &#x27;2021-05-25.dev-survey-2021&#x27;, location: 2, action: 1})"><svg aria-hidden="true" class="m0 svg-icon iconClear" width="18" height="18" viewBox="0 0 18 18"><path d="M15 4.41 13.59 3 9 7.59 4.41 3 3 4.41 7.59 9 3 13.59 4.41 15 9 10.41 13.59 15 15 13.59 10.41 9 15 4.41z"/></svg></a>
</div>
</div>
<script>
StackExchange.ready(function () {
StackExchange.Notice.announcementBannerInit();
});
</script>
<div class="bg-black-025 bs-sm bt bc-black-100 ps-fixed l0 r0 b0 z-nav js-dismissable-hero" data-campaign-name="stk">
<div class="grid wmx12 mx-auto px8 py12 jc-space-between ai-center lg:pl24 lg:pr24 md:fd-column sm:fd-row sm:ai-center">
<div class="grid--cell fs-body2 fl1 mr16 md:mr0 md:mb12 sm:mb0 sm:mr16">
<p class="mb0"><strong>Join Stack Overflow</strong> to learn, share knowledge, and build your career.</p>
</div>
<div id="openid-buttons" class="grid gs8 gsx ai-center sm:jc-space-between">
<a class="grid--cell s-btn s-btn__filled ws-nowrap" href="/users/signup?ssrc=hero&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f35942754%2fhow-to-save-username-and-password-in-git" rel="nofollow" data-ga="[&quot;sign up&quot;,&quot;Sign Up Navigation&quot;,&quot;Question Hero&quot;,null,null]">
<span class="sm:d-none">Sign up with email</span>
<span class="d-none sm:d-inline">Sign up</span>
</a>
<button class="grid--cell ws-nowrap s-btn s-btn__icon s-btn__google ta-center js-major-provider sm:d-none" data-provider='google' data-oauthserver='https://accounts.google.com/o/oauth2/auth' data-oauthversion='2.0' data-ga="[&quot;sign up&quot;,&quot;Sign Up Started - Google&quot;,&quot;Question Hero&quot;,null,null]">
<svg aria-hidden="true" class="native svg-icon iconGoogle" width="18" height="18" viewBox="0 0 18 18"><path d="M16.51 8H8.98v3h4.3c-.18 1-.74 1.48-1.6 2.04v2.01h2.6a7.8 7.8 0 002.38-5.88c0-.57-.05-.66-.15-1.18z" fill="#4285F4"/><path d="M8.98 17c2.16 0 3.97-.72 5.3-1.94l-2.6-2a4.8 4.8 0 01-7.18-2.54H1.83v2.07A8 8 0 008.98 17z" fill="#34A853"/><path d="M4.5 10.52a4.8 4.8 0 010-3.04V5.41H1.83a8 8 0 000 7.18l2.67-2.07z" fill="#FBBC05"/><path d="M8.98 4.18c1.17 0 2.23.4 3.06 1.2l2.3-2.3A8 8 0 001.83 5.4L4.5 7.49a4.77 4.77 0 014.48-3.3z" fill="#EA4335"/></svg>
Sign up with Google
</button>
<button class="grid--cell ws-nowrap s-btn s-btn__icon s-btn__github ta-center js-major-provider sm:d-none" data-provider='github' data-oauthserver='https://github.com/login/oauth/authorize' data-oauthversion='2.0' data-ga="[&quot;sign up&quot;,&quot;Sign Up Started - GitHub&quot;,&quot;Question Hero&quot;,null,null]">
<svg aria-hidden="true" class="svg-icon iconGitHub" width="18" height="18" viewBox="0 0 18 18"><path d="M9 1a8 8 0 00-2.53 15.59c.4.07.55-.17.55-.38l-.01-1.49c-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.42 7.42 0 014 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48l-.01 2.2c0 .21.15.46.55.38A8.01 8.01 0 009 1z" fill="#010101"/></svg>
Sign up with GitHub
</button>
<button class="grid--cell ws-nowrap s-btn s-btn__icon s-btn__facebook ta-center js-major-provider sm:d-none" data-provider='facebook' data-oauthserver='https://www.facebook.com/v2.0/dialog/oauth' data-oauthversion='2.0' data-ga="[&quot;sign up&quot;,&quot;Sign Up Started - Facebook&quot;,&quot;Question Hero&quot;,null,null]">
<svg aria-hidden="true" class="svg-icon iconFacebook" width="18" height="18" viewBox="0 0 18 18"><path d="M3 1a2 2 0 00-2 2v12c0 1.1.9 2 2 2h12a2 2 0 002-2V3a2 2 0 00-2-2H3zm6.55 16v-6.2H7.46V8.4h2.09V6.61c0-2.07 1.26-3.2 3.1-3.2.88 0 1.64.07 1.87.1v2.16h-1.29c-1 0-1.19.48-1.19 1.18V8.4h2.39l-.31 2.42h-2.08V17h-2.5z" fill="#4167B2"/></svg>
Sign up with Facebook
</button>
<button class="grid--cell s-btn s-btn__muted s-btn__icon px8 js-dismiss" title="Dismiss"><svg aria-hidden="true" class="svg-icon iconClear" width="18" height="18" viewBox="0 0 18 18"><path d="M15 4.41 13.59 3 9 7.59 4.41 3 3 4.41 7.59 9 3 13.59 4.41 15 9 10.41 13.59 15 15 13.59 10.41 9 15 4.41z"/></svg></button>
</div>
<form id="login-form" action="/users/signup?ssrc=hero&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f35942754%2fhow-to-save-username-and-password-in-git" method="POST">
<input type="hidden" name="fkey" value="2ec54a34957d844e3d2507cc657ff2b5daa521a3dc5c5fb76c921550acfc7a0e">
<input type="hidden" name="ssrc" value="" />
<input type="hidden" id="oauth_version" name="oauth_version" />
<input type="hidden" id="oauth_server" name="oauth_server" />
<div id="se-login-fields">
<input type="hidden" name="legalLinksShown" value="0" />
</div>
</form>
<script>
StackExchange.ready(function () {
StackExchange.InlineAuth.init();
})
</script>
</div>
</div>
<script>
StackExchange.ready(function () {
StackExchange.Hero.init("stk", "a");
var location = 0;
if ($("body").hasClass("questions-page")) {
location = 1;
} else if ($("body").hasClass("question-page")) {
location = 1;
} else if ($("body").hasClass("faq-page")) {
location = 5;
} else if ($("body").hasClass("home-page")) {
location = 3;
}
$('.js-cta-button').click(function () {
StackExchange.using("gps", function () {
StackExchange.gps.track("hero.action", { hero_action_type: 'cta', location: location }, true);
});
});
// TODO: we should review the class names and whatnot in use here. Older heroes use id selectors, the newer
// sticky question hero on SO has a .js-dismiss class instead, but it's apparently not used anywhere...
// It's not great. Ideally we'd have a set of classes in the partials above that would correspond to
// the behaviours we want here in a more clear way.
// sticky question-page hero at the bottom of the page on SO
$('.js-dismiss').on('click', function () {
StackExchange.using("gps", function () {
StackExchange.gps.track("hero.action", { hero_action_type: "close", location: location }, true);
});
StackExchange.Hero.dismiss();
$(".js-dismissable-hero").fadeOut("fast");
});
});
</script>
<div class="container">
<div id="left-sidebar" data-is-here-when="md lg" class="left-sidebar js-pinned-left-sidebar ps-relative">
<div class="left-sidebar--sticky-container js-sticky-leftnav">
<nav role="navigation">
<ol class="nav-links">
<li class="">
<a
href="/"
class="pl8 js-gps-track nav-links--link"
data-gps-track="top_nav.click({is_current:false, location:2, destination:8})"
aria-controls="" data-controller="" data-s-popover-placement="right">
<div class="grid ai-center">
<div class="grid--cell truncate">
Home
</div>
</div>
</a>
</li>
<li>
<ol class="nav-links">
<li class="fs-fine tt-uppercase ml8 mt16 mb4 fc-light">Public</li>
<li class=" youarehere">
<a id="nav-questions"
href="/questions"
class="pl8 js-gps-track nav-links--link -link__with-icon"
data-gps-track="top_nav.click({is_current:true, location:2, destination:1})"
aria-controls="" data-controller="" data-s-popover-placement="right">
<svg aria-hidden="true" class="svg-icon iconGlobe" width="18" height="18" viewBox="0 0 18 18"><path d="M9 1C4.64 1 1 4.64 1 9c0 4.36 3.64 8 8 8 4.36 0 8-3.64 8-8 0-4.36-3.64-8-8-8zM8 15.32a6.46 6.46 0 01-4.3-2.74 6.46 6.46 0 0 1-.93-5.01L7 11.68v.8c0 .88.12 1.32 1 1.32v1.52zm5.72-2c-.2-.66-1-1.32-1.72-1.32h-1v-2c0-.44-.56-1-1-1H6V7h1c.44 0 1-.56 1-1V5h2c.88 0 1.4-.72 1.4-1.6v-.33a6.45 6.45 0 013.83 4.51 6.45 6.45 0 0 1-1.51 5.73v.01z"/></svg> <span class="-link--channel-name">Questions</span>
</a>
</li>
<li class="">
<a id="nav-tags"
href="/tags"
class=" js-gps-track nav-links--link"
data-gps-track="top_nav.click({is_current:false, location:2, destination:2})"
aria-controls="" data-controller="" data-s-popover-placement="right">
<div class="grid ai-center">
<div class="grid--cell truncate">
Tags
</div>
</div>
</a>
</li>
<li class="">
<a id="nav-users"
href="/users"
class=" js-gps-track nav-links--link"
data-gps-track="top_nav.click({is_current:false, location:2, destination:3})"
aria-controls="" data-controller="" data-s-popover-placement="right">
<div class="grid ai-center">
<div class="grid--cell truncate">
Users
</div>
</div>
</a>
</li>
<li class="fs-fine tt-uppercase ml8 mt16 mb4 fc-light">Find a Job</li>
<li class="">
<a id="nav-jobs"
href="/jobs?so_medium=StackOverflow&amp;so_source=SiteNav"
class=" js-gps-track nav-links--link"
data-gps-track="top_nav.click({is_current:false, location:2, destination:6})"
aria-controls="" data-controller="" data-s-popover-placement="right">
<div class="grid ai-center">
<div class="grid--cell truncate">
Jobs
</div>
</div>
</a>
</li>
<li class="">
<a id="nav-companies"
href="/jobs/companies?so_medium=StackOverflow&amp;so_source=SiteNav"
class=" js-gps-track nav-links--link"
data-gps-track="top_nav.click({is_current:false, location:2, destination:12})"
aria-controls="" data-controller="" data-s-popover-placement="right">
<div class="grid ai-center">
<div class="grid--cell truncate">
Companies
</div>
</div>
</a>
</li>
</ol>
</li>
<li>
<ol class="nav-links">
<div class="js-freemium-cta ps-relative">
<div class="fs-fine tt-uppercase ml8 mt16 mb8 fc-light">Teams</div>
<div class="bt bl bb bc-black-075 p12 pb6 fc-black-600 blr-sm overflow-hidden">
<strong class="fc-black-750 mb6">Stack Overflow for Teams</strong>
Collaborate and share knowledge with a private group.
<img class="wmx100 mx-auto my8 h-auto d-block" width="139" height="114" src="https://cdn.sstatic.net/Img/teams/teams-illo-free-sidebar-promo.svg?v=47faa659a05e" alt="">
<a href="https://stackoverflow.com/teams/create/free?utm_source=so-owned&amp;utm_medium=side-bar&amp;utm_campaign=campaign-38&amp;utm_content=cta"
class="w100 s-btn s-btn__primary s-btn__xs js-gps-track"
data-gps-track="teams.create.left-sidenav.click({ Action: 6 })"
data-ga="[&quot;teams left navigation - anonymous&quot;,&quot;left nav free cta&quot;,&quot;stackoverflow.com/teams/create/free&quot;,null,null]">Create a free Team</a>
<a href="https://stackoverflow.com/teams"
class="w100 s-btn s-btn__muted s-btn__xs js-gps-track"
data-gps-track="teams.create.left-sidenav.click({ Action: 5 })"
data-ga="[&quot;teams left navigation - anonymous&quot;,&quot;left nav free cta&quot;,&quot;stackoverflow.com/teams&quot;,null,null]">What is Teams?</a>
</div>
</div>
<li class="grid ai-center jc-space-between ml8 mt24 mb4 js-create-team-cta d-none">
<div class="grid--cell tt-uppercase fs-fine fc-light">Teams</div>
<div class="grid--cell fs-fine fc-light mr4">
<a href="javascript:void(0)" class="s-link s-link__inherit js-gps-track"
role="button"
aria-controls="popover-teams-create-cta"
data-controller="s-popover"
data-action="s-popover#toggle"
data-s-popover-placement="bottom-start"
data-s-popover-toggle-class="is-selected"
data-gps-track="teams.create.left-sidenav.click({ Action: ShowInfo })"
data-ga="[&quot;teams left navigation - anonymous&quot;,&quot;left nav show teams info&quot;,null,null,null]">
What&#x2019;s this?
</a>
</div>
</li>
<li class="ps-relative js-create-team-cta d-none">
<a href="https://stackoverflow.com/teams/create/free?utm_source=so-owned&amp;utm_medium=side-bar&amp;utm_campaign=campaign-38&amp;utm_content=cta"
class="pl8 js-gps-track nav-links--link"
title="Stack Overflow for Teams is a private, secure spot for your organization's questions and answers."
data-gps-track="teams.create.left-sidenav.click({ Action: FreemiumTeamsCreateClick })"
data-ga="[&quot;teams left navigation - anonymous&quot;,&quot;left nav team click&quot;,&quot;stackoverflow.com/teams/create/free&quot;,null,null]">
<div class="grid ai-center">
<div class="grid--cell s-avatar va-middle bg-orange-400">
<div class="s-avatar--letter mtn1">
<svg aria-hidden="true" class="svg-icon iconBriefcaseSm" width="14" height="14" viewBox="0 0 14 14"><path d="M4 3a1 1 0 011-1h4a1 1 0 011 1v1h.5c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5h-7A1.5 1.5 0 012 10.5v-5C2 4.67 2.67 4 3.5 4H4V3zm5 1V3H5v1h4z"/></svg>
</div>
<svg aria-hidden="true" class="native s-avatar--badge svg-icon iconShieldXSm" width="9" height="10" viewBox="0 0 9 10"><path d="M0 1.84 4.5 0 9 1.84v3.17C9 7.53 6.3 10 4.5 10 2.7 10 0 7.53 0 5.01V1.84z" fill="var(--white)"/><path d="M1 2.5 4.5 1 8 2.5v2.51C8 7.34 5.34 9 4.5 9 3.65 9 1 7.34 1 5.01V2.5zm2.98 3.02L3.2 7h2.6l-.78-1.48a.4.4 0 01.15-.38c.34-.24.73-.7.73-1.14 0-.71-.5-1.23-1.41-1.23-.92 0-1.39.52-1.39 1.23 0 .44.4.9.73 1.14.12.08.18.23.15.38z" fill="var(--black-500)"/></svg>
</div>
<div class="grid--cell pl6">
Create free Team
</div>
</div>
</a>
</li>
</ol>
</li>
</ol>
</nav>
</div>
<div class="s-popover"
id="popover-teams-create-cta"
role="menu"
aria-hidden="true">
<div class="s-popover--arrow"></div>
<div class="ps-relative overflow-hidden">
<p class="mb2"><strong>Teams</strong></p>
<p class="mb12 fs-caption fc-black-400">Q&amp;A for work</p>
<p class="mb12 fs-caption fc-medium">Connect and share knowledge within a single location that is structured and easy to search.</p>
<a href="https://stackoverflow.com/teams"
class="js-gps-track s-btn s-btn__primary s-btn__xs"
data-gps-track="teams.create.left-sidenav.click({ Action: CtaClick })"
data-ga="[&quot;teams left navigation - anonymous&quot;,&quot;left nav cta&quot;,&quot;stackoverflow.com/teams&quot;,null,null]">
Learn more
</a>
</div>
<div class="ps-absolute t8 r8">
<svg aria-hidden="true" class="fc-orange-500 svg-spot spotPeople" width="48" height="48" viewBox="0 0 48 48"><path d="M13.5 28a4.5 4.5 0 100-9 4.5 4.5 0 000 9zM7 30a1 1 0 011-1h11a1 1 0 011 1v5h11v-5a1 1 0 011-1h12a1 1 0 011 1v10a2 2 0 01-2 2H33v5a1 1 0 01-1 1H20a1 1 0 01-1-1v-5H8a1 1 0 01-1-1V30zm25-6.5a4.5 4.5 0 109 0 4.5 4.5 0 00-9 0zM24.5 34a4.5 4.5 0 100-9 4.5 4.5 0 000 9z" opacity=".2"/><path d="M16.4 26.08A6 6 0 107.53 26C5.64 26.06 4 27.52 4 29.45V40a1 1 0 001 1h9a1 1 0 100-2h-4v-7a1 1 0 10-2 0v7H6v-9.55c0-.73.67-1.45 1.64-1.45H16a1 1 0 00.4-1.92zM12 18a4 4 0 110 8 4 4 0 010-8zm16.47 14a6 6 0 10-8.94 0A3.6 3.6 0 0016 35.5V46a1 1 0 001 1h14a1 1 0 001-1V35.5c0-1.94-1.64-3.42-3.53-3.5zM20 28a4 4 0 118 0 4 4 0 01-8 0zm-.3 6h8.6c1 0 1.7.75 1.7 1.5V45h-2v-7a1 1 0 10-2 0v7h-4v-7a1 1 0 10-2 0v7h-2v-9.5c0-.75.7-1.5 1.7-1.5zM42 22c0 1.54-.58 2.94-1.53 4A3.5 3.5 0 0144 29.45V40a1 1 0 01-1 1h-9a1 1 0 110-2h4v-7a1 1 0 112 0v7h2v-9.55A1.5 1.5 0 0040.48 28H32a1 1 0 01-.4-1.92A6 6 0 1142 22zm-2 0a4 4 0 10-8 0 4 4 0 008 0z"/><path d="M17 10a1 1 0 011-1h12a1 1 0 110 2H18a1 1 0 01-1-1zm1-5a1 1 0 100 2h12a1 1 0 100-2H18zm-4-4a1 1 0 00-1 1v12a1 1 0 001 1h5.09l4.2 4.2a1 1 0 001.46-.04l3.7-4.16H34a1 1 0 001-1V2a1 1 0 00-1-1H14zm1 12V3h18v10h-5a1 1 0 00-.75.34l-3.3 3.7-3.74-3.75a1 1 0 00-.71-.29H15z" opacity=".35"/></svg>
</div>
</div>
</div>
<div id="content" class="snippet-hidden">
<div itemprop="mainEntity" itemscope itemtype="https://schema.org/Question">
<link itemprop="image" href="https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a">
<div class="inner-content clearfix">
<div id="question-header" class="grid sm:fd-column">
<h1 itemprop="name" class="fs-headline1 ow-break-word mb8 grid--cell fl1"><a href="/questions/35942754/how-to-save-username-and-password-in-git" class="question-hyperlink">How to save username and password in Git?</a></h1>
<div class="ml12 aside-cta grid--cell print:d-none sm:ml0 sm:mb12 sm:order-first sm:as-end">
<a href="/questions/ask" class="ws-nowrap s-btn s-btn__primary">
Ask Question
</a>
</div>
</div>
<div class="grid fw-wrap pb8 mb16 bb bc-black-075">
<div class="grid--cell ws-nowrap mr16 mb8" title="2016-03-11 14:29:37Z">
<span class="fc-light mr2">Asked</span>
<time itemprop="dateCreated" datetime="2016-03-11T14:29:37">5 years, 3 months ago</time>
</div>
<div class="grid--cell ws-nowrap mr16 mb8">
<span class="fc-light mr2">Active</span>
<a href="?lastactivity" class="s-link s-link__inherit" title="2021-06-03 15:38:10Z">4 days ago</a>
</div>
<div class="grid--cell ws-nowrap mb8" title="Viewed 1,828,857 times">
<span class="fc-light mr2">Viewed</span>
1.8m times
</div>
</div>
<div id="mainbar" role="main" aria-label="question and answers">
<div class="question" data-questionid="35942754" data-ownerid="3511668" data-score="1747" id="question">
<style>
</style>
<div class="js-zone-container zone-container-main">
<div id="dfp-tlb" class="everyonelovesstackoverflow everyoneloves__top-leaderboard everyoneloves__leaderboard"></div>
<div class="js-report-ad-button-container " style="width: 728px"></div>
</div>
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="35942754">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This question shows research effort; it is useful and clear" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="1747">1747</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This question does not show any research effort; it is unclear or not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<button class="js-bookmark-btn s-btn s-btn__unset c-pointer py4 js-gps-track"
data-controller="s-tooltip" data-s-tooltip-placement="right" title="Bookmark this question."
aria-pressed="false" aria-label="Bookmark (559)" data-selected-classes="fc-yellow-600"
data-gps-track="post.click({ item: 1, priv: 0, post_type: 1 })">
<svg aria-hidden="true" class="svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M6 1a2 2 0 00-2 2v14l5-4 5 4V3a2 2 0 00-2-2H6zm3.9 3.83h2.9l-2.35 1.7.9 2.77L9 7.59l-2.35 1.7.9-2.76-2.35-1.7h2.9L9 2.06l.9 2.77z"/></svg>
<div class="js-bookmark-count mt4" data-value="559">559</div>
</button>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/35942754/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="postcell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>I want to use a push and pull automatically in <em>GitExtension</em>, <em>SourceTree</em> or any other Git GUI without entering my user and password in a prompt, every time.</p>
<p>So how can I save my credentials in git?</p>
</div>
<div class="mt24 mb12">
<div class="post-taglist grid gs4 gsy fd-column">
<div class="grid ps-relative">
<a href="/questions/tagged/git" class="post-tag" title="show questions tagged &#39;git&#39;" rel="tag">git</a> <a href="/questions/tagged/credentials" class="post-tag" title="show questions tagged &#39;credentials&#39;" rel="tag">credentials</a> <a href="/questions/tagged/git-config" class="post-tag" title="show questions tagged &#39;git-config&#39;" rel="tag">git-config</a> <a href="/questions/tagged/git-extensions" class="post-tag" title="show questions tagged &#39;git-extensions&#39;" rel="tag">git-extensions</a>
</div>
</div>
</div>
<div class="mb0 ">
<div class="mt16 grid gs8 gsy fw-wrap jc-end ai-start pt4 mb16">
<div class="grid--cell mr16 fl1 w96">
<div class="js-post-menu pt2" data-post-id="35942754">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/q/35942754"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this question"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 1 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this question"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="question"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="1"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/35942754/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 1 })" title="">Improve this question</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-35942754" class="s-btn s-btn__link js-follow-post js-follow-question js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 1 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this question to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell">
<div class="user-info ">
<div class="user-action-time">
<a href="/posts/35942754/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 1 })">edited <span title="2021-06-03 15:38:10Z" class="relativetime">Jun 3 at 15:38</span></a>
</div>
<div class="user-gravatar32">
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<span class="d-none" itemprop="name">Edson Cezar</span>
<div class="-flair">
</div>
</div>
</div>
</div>
<div class="post-signature owner grid--cell">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2016-03-11 14:29:37Z" class="relativetime">Mar 11 '16 at 14:29</span>
</div>
<div class="user-gravatar32">
<a href="/users/3511668/edson-cezar"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/Ri1Uy.jpg?s=32&amp;g=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/3511668/edson-cezar">Edson Cezar</a><span class="d-none" itemprop="name">Edson Cezar</span>
<div class="-flair">
<span class="reputation-score" title="reputation score 17,824" dir="ltr">17.8k</span><span title="4 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">4</span></span><span class="v-visible-sr">4 gold badges</span><span title="14 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">14</span></span><span class="v-visible-sr">14 silver badges</span><span title="25 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">25</span></span><span class="v-visible-sr">25 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">3</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-35942754" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="35942754" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-103900044" class="comment js-comment " data-comment-id="103900044" data-comment-owner-id="911945" data-comment-score="8">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="warm">8</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">You can also authenticate via SSH: <a href="https://stackoverflow.com/questions/6565357/git-push-requires-username-and-password" title="git push requires username and password">stackoverflow.com/questions/6565357/&hellip;</a></span>
&ndash;&nbsp;<a href="/users/911945/anton-tarasenko"
title="6,687 reputation"
class="comment-user">Anton Tarasenko</a>
<span class="comment-date" dir="ltr"><span title="2019-11-12 00:12:11Z, License: CC BY-SA 4.0" class="relativetime-clean">Nov 12 '19 at 0:12</span></span>
</div>
</div>
</li>
<li id="comment-103929523" class="comment js-comment " data-comment-id="103929523" data-comment-owner-id="608639" data-comment-score="1">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">1</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">Also see <a href="https://stackoverflow.com/q/5343068/608639">Is there a way to cache GitHub credentials for pushing commits?</a> and <a href="https://stackoverflow.com/q/8840551/608639">Configuring user and password with Git Bash</a>.</span>
&ndash;&nbsp;<a href="/users/608639/jww"
title="83,802 reputation"
class="comment-user">jww</a>
<span class="comment-date" dir="ltr"><span title="2019-11-12 20:49:36Z, License: CC BY-SA 4.0" class="relativetime-clean">Nov 12 '19 at 20:49</span></span>
<span title="this comment was edited 1 time">
<svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0zM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88z"/></svg>
</span>
</div>
</div>
</li>
<li id="comment-106223012" class="comment js-comment " data-comment-id="106223012" data-comment-owner-id="8577917" data-comment-score="1">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">1</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">@AntonTarasenko my gitconfig says nothing about Proxy, only [user] email = email@dummy.com name = uname [credential] helper = store</span>
&ndash;&nbsp;<a href="/users/8577917/guroosh"
title="518 reputation"
class="comment-user">guroosh</a>
<span class="comment-date" dir="ltr"><span title="2020-02-04 15:43:31Z, License: CC BY-SA 4.0" class="relativetime-clean">Feb 4 '20 at 15:43</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-35942754" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid answering questions in comments." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<div class="js-zone-container zone-container-responsive">
<div id="dfp-isb" class="everyonelovesstackoverflow everyoneloves__inline-sidebar mx-auto"></div>
<div class="js-report-ad-button-container mx-auto" style="width: 300px"></div>
</div>
<div id="answers">
<a name="tab-top"></a>
<div id="answers-header">
<div class="answers-subheader grid ai-center mb8">
<div class="grid--cell fl1">
<h2 class="mb0" data-answercount="21">
21 Answers
<span style="display:none;" itemprop="answerCount">21</span>
</h2>
</div>
<div class="grid--cell">
<div class=" grid s-btn-group js-filter-btn">
<a class="grid--cell s-btn s-btn__muted s-btn__outlined" href="/questions/35942754/how-to-save-username-and-password-in-git?answertab=active#tab-top" data-nav-xhref="" title="Answers with the latest activity first" data-value="active" data-shortcut="A">
Active</a>
<a class="grid--cell s-btn s-btn__muted s-btn__outlined" href="/questions/35942754/how-to-save-username-and-password-in-git?answertab=oldest#tab-top" data-nav-xhref="" title="Answers in the order they were provided" data-value="oldest" data-shortcut="O">
Oldest</a>
<a class="youarehere is-selected grid--cell s-btn s-btn__muted s-btn__outlined" href="/questions/35942754/how-to-save-username-and-password-in-git?answertab=votes#tab-top" data-nav-xhref="" title="Answers with the highest score first" data-value="votes" data-shortcut="V">
Votes</a>
</div>
</div>
</div>
</div>
<a name="35942890"></a>
<div id="answer-35942890" class="answer accepted-answer" data-answerid="35942890" data-ownerid="5574889" data-score="3130" itemprop="acceptedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="35942890">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="3130">3130</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/35942890/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p><strong>Attention</strong>: This method saves the credentials in <strong>plaintext</strong> on your PC's disk. Everyone on your computer can access it, e.g. malicious NPM modules.</p>
<p>Run</p>
<pre><code>git config --global credential.helper store
</code></pre>
<p>then</p>
<pre><code>git pull
</code></pre>
<p>provide a username and password and those details will then be remembered later. The credentials are stored in a file on the disk, with the disk permissions of &quot;just user readable/writable&quot; but still in plaintext.</p>
<p>If you want to change the password later</p>
<pre><code>git pull
</code></pre>
<p>Will fail, because the password is incorrect, git then removes the offending user+password from the <code>~/.git-credentials</code> file, so now re-run</p>
<pre><code>git pull
</code></pre>
<p>to provide a new password so it works as earlier.</p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2016-03-11T14:36:13"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="35942890">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/35942890"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/35942890/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-35942890" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
<a href="/posts/35942890/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2020-11-11 14:15:23Z" class="relativetime">Nov 11 '20 at 14:15</span></a>
</div>
<div class="user-gravatar32">
<a href="/users/1168315/dominik"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/78dfc692c7f5fd63c7e3407f8c610c45?s=32&amp;d=identicon&amp;r=PG" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details">
<a href="/users/1168315/dominik">Dominik</a>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">1,463</span><span title="1 gold badge" aria-hidden="true"><span class="badge1"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 gold badge</span><span title="16 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">16</span></span><span class="v-visible-sr">16 silver badges</span><span title="31 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">31</span></span><span class="v-visible-sr">31 bronze badges</span>
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
answered <span title="2016-03-11 14:36:13Z" class="relativetime">Mar 11 '16 at 14:36</span>
</div>
<div class="user-gravatar32">
<a href="/users/5574889/neetika"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/nSbkx.jpg?s=32&amp;g=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/5574889/neetika">Neetika</a><span class="d-none" itemprop="name">Neetika</span>
<div class="-flair">
<span class="reputation-score" title="reputation score 31,570" dir="ltr">31.6k</span><span title="1 gold badge" aria-hidden="true"><span class="badge1"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 gold badge</span><span title="8 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">8</span></span><span class="v-visible-sr">8 silver badges</span><span title="7 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">7</span></span><span class="v-visible-sr">7 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">21</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-35942890" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="35942890" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="16"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-79777242" class="comment js-comment " data-comment-id="79777242" data-comment-owner-id="2550406" data-comment-score="6">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="warm">6</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">how is the -u flag important to change password later?</span>
&ndash;&nbsp;<a href="/users/2550406/lucidbrot"
title="3,809 reputation"
class="comment-user">lucidbrot</a>
<span class="comment-date" dir="ltr"><span title="2017-09-25 16:18:19Z, License: CC BY-SA 3.0" class="relativetime-clean">Sep 25 '17 at 16:18</span></span>
</div>
</div>
</li>
<li id="comment-80009287" class="comment js-comment " data-comment-id="80009287" data-comment-owner-id="588759" data-comment-score="13">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="warm">13</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">for Debian/Ubuntu use libsecret <a href="https://stackoverflow.com/questions/36585496/error-when-using-git-credential-helper-with-gnome-keyring-as-sudo/40312117#40312117" title="error when using git credential helper with gnome keyring as sudo">stackoverflow.com/questions/36585496/&hellip;</a></span>
&ndash;&nbsp;<a href="/users/588759/rofrol"
title="12,078 reputation"
class="comment-user">rofrol</a>
<span class="comment-date" dir="ltr"><span title="2017-10-02 14:29:24Z, License: CC BY-SA 3.0" class="relativetime-clean">Oct 2 '17 at 14:29</span></span>
</div>
</div>
</li>
<li id="comment-81476960" class="comment js-comment " data-comment-id="81476960" data-comment-owner-id="5574889" data-comment-score="3">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">3</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">@lucidbrot sorry for replying late. git pull -u not working with latest version. I have updated the answer. Hope it will answer your question.</span>
&ndash;&nbsp;<a href="/users/5574889/neetika"
title="31,570 reputation"
class="comment-user">Neetika</a>
<span class="comment-date" dir="ltr"><span title="2017-11-13 11:21:39Z, License: CC BY-SA 3.0" class="relativetime-clean">Nov 13 '17 at 11:21</span></span>
</div>
</div>
</li>
<li id="comment-91886911" class="comment js-comment " data-comment-id="91886911" data-comment-owner-id="505406" data-comment-score="118">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="supernova">118</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">Note that this will store your username and password in a plain text file at ~/.git-credentials. Anyone can open it and read it.</span>
&ndash;&nbsp;<a href="/users/505406/roboalex"
title="4,518 reputation"
class="comment-user">RoboAlex</a>
<span class="comment-date" dir="ltr"><span title="2018-09-24 04:13:01Z, License: CC BY-SA 4.0" class="relativetime-clean">Sep 24 '18 at 4:13</span></span>
</div>
</div>
</li>
<li id="comment-104337307" class="comment js-comment " data-comment-id="104337307" data-comment-owner-id="4588453" data-comment-score="14">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="warm">14</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">I think it&#39;s worth pointing out that one may want to skip the <code>--global</code> to only store the password for one repository (when pulling and pushing) but not for any other repository (which might be on a different hoster, with different credentials that one might not want to store for whatever reasons)</span>
&ndash;&nbsp;<a href="/users/4588453/pseyfert"
title="2,403 reputation"
class="comment-user">pseyfert</a>
<span class="comment-date" dir="ltr"><span title="2019-11-26 10:04:01Z, License: CC BY-SA 4.0" class="relativetime-clean">Nov 26 '19 at 10:04</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-35942890" data-rep=50 data-anon=true>
<a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button"></a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link " title="Expand to show all comments on this post" href=# onclick="" role="button">Show <b>16</b> more comments</a>
</div>
</div>
</div>
</div>
<div class="js-zone-container zone-container-main">
<div id="dfp-mlb" class="everyonelovesstackoverflow everyoneloves__mid-leaderboard everyoneloves__leaderboard"></div>
<div class="js-report-ad-button-container " style="width: 728px"></div>
</div>
<a name="35943882"></a>
<div id="answer-35943882" class="answer" data-answerid="35943882" data-ownerid="2450855" data-score="459" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="35943882">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="459">459</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/35943882/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>You can use the <code>git config</code> to enable credentials storage in git.</p>
<pre><code>git config --global credential.helper store
</code></pre>
<p>When running this command, the first time you pull or push from the remote repository, you'll get asked about the username and password.</p>
<p>Afterwards, for consequent communications with the remote repository you don't have to provide the username and password.</p>
<p>The storage format is a <code>.git-credentials</code> file, stored in plaintext.</p>
<p>Also, you can use other helpers for the <code>git config credential.helper</code>, namely memory cache:</p>
<pre><code>git config credential.helper cache &lt;timeout&gt;
</code></pre>
<p>which takes an optional <code>timeout parameter</code>,
determining for how long the credentials will be kept in memory. Using the helper, the credentials will never touch the disk and will be erased after the specified timeout. The <code>default</code> value is <code>900 seconds (15 minutes).</code></p>
<hr>
<p><strong>WARNING</strong> : If you use this method, your git account passwords will be saved in <code>plaintext</code> format, in the <code>global .gitconfig file</code>, e.g in linux it will be <code>/home/[username]/.gitconfig</code></p>
<p>If this is undesirable to you, use an <code>ssh key</code> for your accounts instead.</p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2016-03-11T15:22:06"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="35943882">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/35943882"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/35943882/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-35943882" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
<a href="/posts/35943882/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2019-07-20 07:06:42Z" class="relativetime">Jul 20 '19 at 7:06</span></a>
</div>
<div class="user-gravatar32">
</div>
<div class="user-details">
<div class="-flair">
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
answered <span title="2016-03-11 15:22:06Z" class="relativetime">Mar 11 '16 at 15:22</span>
</div>
<div class="user-gravatar32">
<a href="/users/2450855/farhad-faghihi"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/c71e825b2af16dd5a14bd6daf4e21469?s=32&amp;d=identicon&amp;r=PG" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/2450855/farhad-faghihi">Farhad Faghihi</a><span class="d-none" itemprop="name">Farhad Faghihi</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">9,894</span><span title="5 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">5</span></span><span class="v-visible-sr">5 gold badges</span><span title="28 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">28</span></span><span class="v-visible-sr">28 silver badges</span><span title="55 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">55</span></span><span class="v-visible-sr">55 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">11</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-35943882" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="35943882" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="6"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-72469696" class="comment js-comment " data-comment-id="72469696" data-comment-owner-id="1385174" data-comment-score="3">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">3</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">Wish you showed the .gitconfig file - the first command has been overwritten by the second :(</span>
&ndash;&nbsp;<a href="/users/1385174/adam"
title="4,585 reputation"
class="comment-user">Adam</a>
<span class="comment-date" dir="ltr"><span title="2017-03-08 13:24:01Z, License: CC BY-SA 3.0" class="relativetime-clean">Mar 8 '17 at 13:24</span></span>
</div>
</div>
</li>
<li id="comment-100762224" class="comment js-comment " data-comment-id="100762224" data-comment-owner-id="5201771" data-comment-score="6">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="warm">6</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">For <code>git config credential.helper cache</code> the passwords will not be saved to a file, only stored in memory. See: <a href="https://git-scm.com/docs/git-credential-cache" rel="nofollow noreferrer">git-scm.com/docs/git-credential-cache</a></span>
&ndash;&nbsp;<a href="/users/5201771/s-a"
title="1,232 reputation"
class="comment-user">S.A.</a>
<span class="comment-date" dir="ltr"><span title="2019-07-20 06:11:04Z, License: CC BY-SA 4.0" class="relativetime-clean">Jul 20 '19 at 6:11</span></span>
</div>
</div>
</li>
<li id="comment-102760566" class="comment js-comment " data-comment-id="102760566" data-comment-owner-id="1308453" data-comment-score="2">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">2</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">Does not work. Gives fatal: Authentication failed. Doesnt even ask for password.</span>
&ndash;&nbsp;<a href="/users/1308453/philip-rego"
title="534 reputation"
class="comment-user">Philip Rego</a>
<span class="comment-date" dir="ltr"><span title="2019-10-01 18:41:40Z, License: CC BY-SA 4.0" class="relativetime-clean">Oct 1 '19 at 18:41</span></span>
<span title="this comment was edited 1 time">
<svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0zM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88z"/></svg>
</span>
</div>
</div>
</li>
<li id="comment-105417680" class="comment js-comment " data-comment-id="105417680" data-comment-owner-id="3070062" data-comment-score="6">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="warm">6</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">Just as an addendum - your private ssh-key will also be stored in plaintext in a user-accessible location, so in essence the same attack surface in both cases.</span>
&ndash;&nbsp;<a href="/users/3070062/falco"
title="3,107 reputation"
class="comment-user">Falco</a>
<span class="comment-date" dir="ltr"><span title="2020-01-07 11:48:18Z, License: CC BY-SA 4.0" class="relativetime-clean">Jan 7 '20 at 11:48</span></span>
</div>
</div>
</li>
<li id="comment-106933971" class="comment js-comment " data-comment-id="106933971" data-comment-owner-id="7467923" data-comment-score="0">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">how can I use this for gitlab</span>
&ndash;&nbsp;<a href="/users/7467923/anil"
title="323 reputation"
class="comment-user">anil</a>
<span class="comment-date" dir="ltr"><span title="2020-02-28 07:22:36Z, License: CC BY-SA 4.0" class="relativetime-clean">Feb 28 '20 at 7:22</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-35943882" data-rep=50 data-anon=true>
<a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button"></a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link " title="Expand to show all comments on this post" href=# onclick="" role="button">Show <b>6</b> more comments</a>
</div>
</div>
</div>
</div>
<a name="51327559"></a>
<div id="answer-51327559" class="answer" data-answerid="51327559" data-ownerid="8696958" data-score="302" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="51327559">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="302">302</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/51327559/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p><strong>Recommended and Secure Method: SSH</strong></p>
<p>Create an ssh Github key. Go to <a href="https://www.github.com" rel="noreferrer">github.com</a> -> Settings -> SSH and GPG keys -> New SSH Key. Now save your private key to your computer.</p>
<p>Then, if the private key is saved as <em>id_rsa</em> in the <em>~/.ssh/</em> directory, we add it for authentication as such:</p>
<pre><code>ssh-add -K ~/.ssh/id_rsa
</code></pre>
<p><br />
<strong>A More Secure Method: Caching</strong></p>
<p>We can use git-credential-store to cache our username and password for a time period. Simply enter the following in your CLI (terminal or command prompt):</p>
<pre><code>git config --global credential.helper cache
</code></pre>
<p>You can also set the timeout period (in seconds) as such:</p>
<pre><code>git config --global credential.helper 'cache --timeout=3600'
</code></pre>
<p><br />
<strong>An Even Less Secure Method</strong></p>
<p>Git-credential-store may also be used, but saves passwords in plain text file on your disk as such:</p>
<pre><code>git config credential.helper store
</code></pre>
<p><br />
<strong>Outdated Answer - Quick and Insecure</strong></p>
<p>This is an <strong>insecure</strong> method of storing your password in plain text. If someone gains control of your computer, your password will be exposed! </p>
<p>You can set your username and password like this:</p>
<pre><code>git config --global user.name "your username"
git config --global user.password "your password"
</code></pre>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2018-07-13T14:34:52"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="51327559">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/51327559"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/51327559/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-51327559" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
<a href="/posts/51327559/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2020-02-19 22:36:07Z" class="relativetime">Feb 19 '20 at 22:36</span></a>
</div>
<div class="user-gravatar32">
<a href="/users/7487335/josh-correia"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/32244f1bdffe72c55bc128e9aa1e7a47?s=32&amp;d=identicon&amp;r=PG&amp;f=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details">
<a href="/users/7487335/josh-correia">Josh Correia</a>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">2,168</span><span title="1 gold badge" aria-hidden="true"><span class="badge1"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 gold badge</span><span title="17 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">17</span></span><span class="v-visible-sr">17 silver badges</span><span title="29 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">29</span></span><span class="v-visible-sr">29 bronze badges</span>
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
answered <span title="2018-07-13 14:34:52Z" class="relativetime">Jul 13 '18 at 14:34</span>
</div>
<div class="user-gravatar32">
<a href="/users/8696958/andreas-bigger"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/be30da7bb7f1336c6a25d70d8ae0248b?s=32&amp;d=identicon&amp;r=PG&amp;f=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/8696958/andreas-bigger">Andreas Bigger</a><span class="d-none" itemprop="name">Andreas Bigger</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">3,481</span><span title="1 gold badge" aria-hidden="true"><span class="badge1"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 gold badge</span><span title="9 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">9</span></span><span class="v-visible-sr">9 silver badges</span><span title="16 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">16</span></span><span class="v-visible-sr">16 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">12</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-51327559" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="51327559" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="7"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-94573239" class="comment js-comment " data-comment-id="94573239" data-comment-owner-id="869951" data-comment-score="24">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="hot">24</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">This did not work for me, git clone still asks for the username and password</span>
&ndash;&nbsp;<a href="/users/869951/oliver"
title="21,976 reputation"
class="comment-user">Oliver</a>
<span class="comment-date" dir="ltr"><span title="2018-12-20 05:09:52Z, License: CC BY-SA 4.0" class="relativetime-clean">Dec 20 '18 at 5:09</span></span>
</div>
</div>
</li>
<li id="comment-94699210" class="comment js-comment " data-comment-id="94699210" data-comment-owner-id="3496879" data-comment-score="13">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="warm">13</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">i do not recommend storing your password like this because &quot;git config --global -l&quot; would reveal your password on the console</span>
&ndash;&nbsp;<a href="/users/3496879/ccc"
title="812 reputation"
class="comment-user">CCC</a>
<span class="comment-date" dir="ltr"><span title="2018-12-26 08:02:58Z, License: CC BY-SA 4.0" class="relativetime-clean">Dec 26 '18 at 8:02</span></span>
</div>
</div>
</li>
<li id="comment-104422674" class="comment js-comment " data-comment-id="104422674" data-comment-owner-id="5036947" data-comment-score="2">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">2</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">This is not working for me. It is strange that it should work for anyone, since in gitconfig&#39;s specification there is no room for &quot;password&quot;</span>
&ndash;&nbsp;<a href="/users/5036947/hamish-todd"
title="73 reputation"
class="comment-user">Hamish Todd</a>
<span class="comment-date" dir="ltr"><span title="2019-11-28 18:12:46Z, License: CC BY-SA 4.0" class="relativetime-clean">Nov 28 '19 at 18:12</span></span>
</div>
</div>
</li>
<li id="comment-112268050" class="comment js-comment " data-comment-id="112268050" data-comment-owner-id="5445739" data-comment-score="1">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">1</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">The ssh method is preferred, particularly if you create a pass-phrase. I find Git&#39;s instructions helpful: <a href="https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh" rel="nofollow noreferrer">docs.github.com/en/github/authenticating-to-github/&hellip;</a></span>
&ndash;&nbsp;<a href="/users/5445739/kingaj"
title="121 reputation"
class="comment-user">kingaj</a>
<span class="comment-date" dir="ltr"><span title="2020-08-19 14:39:50Z, License: CC BY-SA 4.0" class="relativetime-clean">Aug 19 '20 at 14:39</span></span>
</div>
</div>
</li>
<li id="comment-117291017" class="comment js-comment " data-comment-id="117291017" data-comment-owner-id="1658458" data-comment-score="1">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">1</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">If you use the SSH method, you&#39;ll need to start using SSH URLs instead of git URLs - <a href="https://stackoverflow.com/questions/14762034/push-to-github-without-a-password-using-ssh-key" title="push to github without a password using ssh key">stackoverflow.com/questions/14762034/&hellip;</a></span>
&ndash;&nbsp;<a href="/users/1658458/yndolok"
title="4,689 reputation"
class="comment-user">yndolok</a>
<span class="comment-date" dir="ltr"><span title="2021-02-24 03:32:12Z, License: CC BY-SA 4.0" class="relativetime-clean">Feb 24 at 3:32</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-51327559" data-rep=50 data-anon=true>
<a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button"></a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link " title="Expand to show all comments on this post" href=# onclick="" role="button">Show <b>7</b> more comments</a>
</div>
</div>
</div>
</div>
<div class="js-zone-container zone-container-main">
<div id="dfp-smlb" class="everyonelovesstackoverflow everyoneloves__mid-second-leaderboard everyoneloves__leaderboard"></div>
<div class="js-report-ad-button-container " style="width: 728px"></div>
</div>
<a name="45327254"></a>
<div id="answer-45327254" class="answer" data-answerid="45327254" data-ownerid="4217744" data-score="122" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="45327254">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="122">122</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/45327254/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<h3>Turn on the credential helper so that Git will save your password in memory for some time:</h3>
<p>In Terminal, enter the following:</p>
<pre><code># Set git to use the credential memory cache
git config --global credential.helper cache
</code></pre>
<p>By default, Git will cache your password for 15 minutes.</p>
<p>To change the default password cache timeout, enter the following:</p>
<pre><code># Set the cache to timeout after 1 hour (setting is in seconds)
git config --global credential.helper 'cache --timeout=3600'
</code></pre>
<p>From <a href="https://help.github.com/articles/caching-your-github-password-in-git/" rel="noreferrer">GitHub Help</a></p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2017-07-26T12:38:34"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="45327254">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/45327254"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/45327254/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-45327254" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
<a href="/posts/45327254/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2018-09-23 08:13:26Z" class="relativetime">Sep 23 '18 at 8:13</span></a>
</div>
<div class="user-gravatar32">
<a href="/users/81071/koraktor"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/a0cc4d1c55ee3ae48437c4e7774355b7?s=32&amp;d=identicon&amp;r=PG" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details">
<a href="/users/81071/koraktor">Koraktor</a>
<div class="-flair">
<span class="reputation-score" title="reputation score 35,752" dir="ltr">35.8k</span><span title="8 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">8</span></span><span class="v-visible-sr">8 gold badges</span><span title="65 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">65</span></span><span class="v-visible-sr">65 silver badges</span><span title="94 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">94</span></span><span class="v-visible-sr">94 bronze badges</span>
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
answered <span title="2017-07-26 12:38:34Z" class="relativetime">Jul 26 '17 at 12:38</span>
</div>
<div class="user-gravatar32">
<a href="/users/4217744/simhumileco"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/zdc7Z.png?s=32&amp;g=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/4217744/simhumileco">simhumileco</a><span class="d-none" itemprop="name">simhumileco</span>
<div class="-flair">
<span class="reputation-score" title="reputation score 21,991" dir="ltr">22k</span><span title="14 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">14</span></span><span class="v-visible-sr">14 gold badges</span><span title="107 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">107</span></span><span class="v-visible-sr">107 silver badges</span><span title="90 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">90</span></span><span class="v-visible-sr">90 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">8</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-45327254" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="45327254" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="3"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-83855760" class="comment js-comment " data-comment-id="83855760" data-comment-owner-id="6723250" data-comment-score="7">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="warm">7</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">you&#39;re the only one who suggested the global version which is IMPORTANT, cause it got ruined for me every time I re-cloned the repo</span>
&ndash;&nbsp;<a href="/users/6723250/xerus"
title="1,499 reputation"
class="comment-user">Xerus</a>
<span class="comment-date" dir="ltr"><span title="2018-01-24 21:56:57Z, License: CC BY-SA 3.0" class="relativetime-clean">Jan 24 '18 at 21:56</span></span>
</div>
</div>
</li>
<li id="comment-86327387" class="comment js-comment " data-comment-id="86327387" data-comment-owner-id="4636860" data-comment-score="5">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="warm">5</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">How to set the timeout to infinity? I never want to enter my password again.</span>
&ndash;&nbsp;<a href="/users/4636860/avamander"
title="433 reputation"
class="comment-user">Avamander</a>
<span class="comment-date" dir="ltr"><span title="2018-04-04 19:33:55Z, License: CC BY-SA 3.0" class="relativetime-clean">Apr 4 '18 at 19:33</span></span>
</div>
</div>
</li>
<li id="comment-86886510" class="comment js-comment " data-comment-id="86886510" data-comment-owner-id="2101117" data-comment-score="8">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="warm">8</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">@Avamander just replace the <code>cache</code> part with <code>store</code>. So, the full command will be: <code>git config --global credential.helper store</code>. Note that this will store Your password in a open-text file (without any encryption, so to say).</span>
&ndash;&nbsp;<a href="/users/2101117/aleksandar"
title="1,387 reputation"
class="comment-user">Aleksandar</a>
<span class="comment-date" dir="ltr"><span title="2018-04-20 06:40:38Z, License: CC BY-SA 3.0" class="relativetime-clean">Apr 20 '18 at 6:40</span></span>
<span title="this comment was edited 1 time">
<svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0zM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88z"/></svg>
</span>
</div>
</div>
</li>
<li id="comment-86925400" class="comment js-comment " data-comment-id="86925400" data-comment-owner-id="4636860" data-comment-score="3">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">3</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">@Casper That doesn&#39;t work with more than one account, the password isn&#39;t fetched from the store based on the e-mail like it should, instead the first one in the list is taken.</span>
&ndash;&nbsp;<a href="/users/4636860/avamander"
title="433 reputation"
class="comment-user">Avamander</a>
<span class="comment-date" dir="ltr"><span title="2018-04-21 09:53:52Z, License: CC BY-SA 3.0" class="relativetime-clean">Apr 21 '18 at 9:53</span></span>
</div>
</div>
</li>
<li id="comment-86928218" class="comment js-comment " data-comment-id="86928218" data-comment-owner-id="2101117" data-comment-score="2">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">2</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">@Avamander hm.. is that supposed to be like that or it might be a bug? What is the maximum value for the <code>--timeout</code> parameter?</span>
&ndash;&nbsp;<a href="/users/2101117/aleksandar"
title="1,387 reputation"
class="comment-user">Aleksandar</a>
<span class="comment-date" dir="ltr"><span title="2018-04-21 12:50:06Z, License: CC BY-SA 3.0" class="relativetime-clean">Apr 21 '18 at 12:50</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-45327254" data-rep=50 data-anon=true>
<a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button"></a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link " title="Expand to show all comments on this post" href=# onclick="" role="button">Show <b>3</b> more comments</a>
</div>
</div>
</div>
</div>
<a name="50700468"></a>
<div id="answer-50700468" class="answer" data-answerid="50700468" data-ownerid="4374291" data-score="68" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="50700468">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="68">68</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/50700468/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>You can edit the <code>~/.gitconfig</code> file to <strong>store</strong> your <strong>credentials</strong></p>
<pre><code>sudo nano ~/.gitconfig
</code></pre>
<p>Which should already have</p>
<pre><code>[user]
email = your@email.com
user = gitUSER
</code></pre>
<p>You should add at the bottom of this file.</p>
<pre><code>[credential]
helper = store
</code></pre>
<p>The reason I recommend this option is cause it is global and if at any point you need to remove the option you know where to go and change it.</p>
<p><strong>ONLY USE THIS OPTION IN YOU PERSONAL COMPUTER.</strong></p>
<p>Then when you pull | clone| enter you git password, in general, the password will be saved in <code>~/.git-credentials</code> in the format</p>
<pre><code>https://GITUSER:GITPASSWORD@DOMAIN.XXX
</code></pre>
<p><strong>WHERE DOMAIN.XXX COULD BE GITHUB.COM | BITBUCKET.ORG | OTHER</strong></p>
<p>See <a href="https://git-scm.com/docs/git-credential-store" rel="noreferrer">Docs</a></p>
<h3><em>Restart your terminal.</em></h3>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2018-06-05T12:47:58"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="50700468">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/50700468"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/50700468/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-50700468" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
<a href="/posts/50700468/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2019-01-15 22:38:04Z" class="relativetime">Jan 15 '19 at 22:38</span></a>
</div>
<div class="user-gravatar32">
</div>
<div class="user-details">
<div class="-flair">
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
answered <span title="2018-06-05 12:47:58Z" class="relativetime">Jun 5 '18 at 12:47</span>
</div>
<div class="user-gravatar32">
<a href="/users/4374291/t04435"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/oxcAX.jpg?s=32&amp;g=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/4374291/t04435">T04435</a><span class="d-none" itemprop="name">T04435</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">7,543</span><span title="1 gold badge" aria-hidden="true"><span class="badge1"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 gold badge</span><span title="41 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">41</span></span><span class="v-visible-sr">41 silver badges</span><span title="47 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">47</span></span><span class="v-visible-sr">47 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">3</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-50700468" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="50700468" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-95242281" class="comment js-comment " data-comment-id="95242281" data-comment-owner-id="3705478" data-comment-score="2">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">2</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">Don&#39;t forget to restart git bash window. Only when I did that, it worked for me.</span>
&ndash;&nbsp;<a href="/users/3705478/sofs1"
title="2,943 reputation"
class="comment-user">sofs1</a>
<span class="comment-date" dir="ltr"><span title="2019-01-15 22:33:11Z, License: CC BY-SA 4.0" class="relativetime-clean">Jan 15 '19 at 22:33</span></span>
</div>
</div>
</li>
<li id="comment-114667152" class="comment js-comment " data-comment-id="114667152" data-comment-owner-id="1705829" data-comment-score="0">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">The other alternative not recommended would be to leave the [credential] and the git-credentials and store the password direct in the .gitconfig. Either manually or with git config ..</span>
&ndash;&nbsp;<a href="/users/1705829/timo"
title="2,008 reputation"
class="comment-user">Timo</a>
<span class="comment-date" dir="ltr"><span title="2020-11-16 10:59:24Z, License: CC BY-SA 4.0" class="relativetime-clean">Nov 16 '20 at 10:59</span></span>
</div>
</div>
</li>
<li id="comment-114668748" class="comment js-comment " data-comment-id="114668748" data-comment-owner-id="1705829" data-comment-score="0">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">Restarting means <code>exec bash</code></span>
&ndash;&nbsp;<a href="/users/1705829/timo"
title="2,008 reputation"
class="comment-user">Timo</a>
<span class="comment-date" dir="ltr"><span title="2020-11-16 12:04:50Z, License: CC BY-SA 4.0" class="relativetime-clean">Nov 16 '20 at 12:04</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-50700468" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<a name="51164322"></a>
<div id="answer-51164322" class="answer" data-answerid="51164322" data-ownerid="3135511" data-score="50" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="51164322">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="50">50</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/51164322/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>Just put your credentials in the Url like this:</p>
<blockquote>
<p><code>https://Username</code><strong>:</strong><code>Password</code><strong>@</strong><code>github.com/myRepoDir/myRepo.git</code></p>
</blockquote>
<p>You may <strong>store</strong> it like this:</p>
<blockquote>
<p><code>git remote add myrepo https://Userna...</code></p>
</blockquote>
<p>...example to <strong>use</strong> it:</p>
<blockquote>
<p><code>git push myrepo master</code></p>
</blockquote>
<hr>
<p>Now that is to <strong>List</strong> the url aliases:</p>
<p><code>git remote -v</code></p>
<p>...and that the command to delete one of them:</p>
<p><code>git remote rm myrepo</code></p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2018-07-04T00:19:50"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="51164322">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/51164322"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/51164322/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-51164322" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
<a href="/posts/51164322/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2019-06-10 01:03:13Z" class="relativetime">Jun 10 '19 at 1:03</span></a>
</div>
<div class="user-gravatar32">
<a href="/users/411247/topera"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/of4bM.png?s=32&amp;g=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details">
<a href="/users/411247/topera">Topera</a>
<div class="-flair">
<span class="reputation-score" title="reputation score 11,314" dir="ltr">11.3k</span><span title="14 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">14</span></span><span class="v-visible-sr">14 gold badges</span><span title="59 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">59</span></span><span class="v-visible-sr">59 silver badges</span><span title="100 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">100</span></span><span class="v-visible-sr">100 bronze badges</span>
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
answered <span title="2018-07-04 00:19:50Z" class="relativetime">Jul 4 '18 at 0:19</span>
</div>
<div class="user-gravatar32">
<a href="/users/3135511/nadu"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/PM6zT.jpg?s=32&amp;g=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/3135511/nadu">Nadu</a><span class="d-none" itemprop="name">Nadu</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">2,088</span><span title="1 gold badge" aria-hidden="true"><span class="badge1"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 gold badge</span><span title="20 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">20</span></span><span class="v-visible-sr">20 silver badges</span><span title="28 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">28</span></span><span class="v-visible-sr">28 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">4</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-51164322" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="51164322" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-89796670" class="comment js-comment " data-comment-id="89796670" data-comment-owner-id="9172399" data-comment-score="9">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="warm">9</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">You can also leave your password out of the URL so Git will ask for your password, but not your username.</span>
&ndash;&nbsp;<a href="/users/9172399/kangaroo"
title="173 reputation"
class="comment-user">kangaroo</a>
<span class="comment-date" dir="ltr"><span title="2018-07-19 00:02:04Z, License: CC BY-SA 4.0" class="relativetime-clean">Jul 19 '18 at 0:02</span></span>
</div>
</div>
</li>
<li id="comment-105390939" class="comment js-comment " data-comment-id="105390939" data-comment-owner-id="6412212" data-comment-score="1">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">1</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">It&#39;s much easy and secure to use SSH instead of HTTP. So, you could keep your Git password secret and only use your SSH-Key. Information about SSH on Git: <a href="https://help.github.com/en/enterprise/2.16/user/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" rel="nofollow noreferrer">help.github.com/en/enterprise/2.16/user/&hellip;</a> <code>git@github.com:Username&#47;myRepo.git</code></span>
&ndash;&nbsp;<a href="/users/6412212/lo%c3%afch"
title="342 reputation"
class="comment-user">Lo&#xEF;ch</a>
<span class="comment-date" dir="ltr"><span title="2020-01-06 14:32:16Z, License: CC BY-SA 4.0" class="relativetime-clean">Jan 6 '20 at 14:32</span></span>
<span title="this comment was edited 2 times">
<svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0zM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88z"/></svg>
</span>
</div>
</div>
</li>
<li id="comment-106682866" class="comment js-comment " data-comment-id="106682866" data-comment-owner-id="7487335" data-comment-score="2">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">2</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">Having your password in the url will save it to your terminal&#39;s history so this way isn&#39;t very secure.</span>
&ndash;&nbsp;<a href="/users/7487335/josh-correia"
title="2,168 reputation"
class="comment-user">Josh Correia</a>
<span class="comment-date" dir="ltr"><span title="2020-02-19 22:03:51Z, License: CC BY-SA 4.0" class="relativetime-clean">Feb 19 '20 at 22:03</span></span>
</div>
</div>
</li>
<li id="comment-109512255" class="comment js-comment " data-comment-id="109512255" data-comment-owner-id="1386750" data-comment-score="1">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">1</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">Note that a Wiki can currently only be cloned through <code>https</code>, not <code>ssh</code>, so a solution like this can be useful there. Note also that you can use an oauth-token, which is marginally more secure that your GitHub password.</span>
&ndash;&nbsp;<a href="/users/1386750/astrofloyd"
title="353 reputation"
class="comment-user">AstroFloyd</a>
<span class="comment-date" dir="ltr"><span title="2020-05-20 15:22:21Z, License: CC BY-SA 4.0" class="relativetime-clean">May 20 '20 at 15:22</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-51164322" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<a name="54979082"></a>
<div id="answer-54979082" class="answer" data-answerid="54979082" data-ownerid="11146075" data-score="41" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="54979082">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="41">41</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/54979082/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>For global setting, open the terminal (from any where)
run the following:</p>
<pre><code> git config --global user.name "your username"
git config --global user.password "your password"
</code></pre>
<p>By that, any local git repo that you have on your machine will use that information.</p>
<p>You can individually config for each repo by doing:</p>
<ul>
<li>open terminal at the repo folder.</li>
<li><p>run the following:</p>
<pre><code>git config user.name "your username"
git config user.password "your password"
</code></pre></li>
</ul>
<p>It affects only that folder (because your configuration is local).</p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2019-03-04T08:13:40"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="54979082">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/54979082"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/54979082/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-54979082" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
<a href="/posts/54979082/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2019-10-08 08:54:49Z" class="relativetime">Oct 8 '19 at 8:54</span></a>
</div>
<div class="user-gravatar32">
<a href="/users/1811752/m%c3%a1t%c3%a9"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/sSedp.png?s=32&amp;g=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details">
<a href="/users/1811752/m%c3%a1t%c3%a9">M&#225;t&#233;</a>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">2,195</span><span title="3 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">3</span></span><span class="v-visible-sr">3 gold badges</span><span title="16 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">16</span></span><span class="v-visible-sr">16 silver badges</span><span title="25 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">25</span></span><span class="v-visible-sr">25 bronze badges</span>
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
answered <span title="2019-03-04 08:13:40Z" class="relativetime">Mar 4 '19 at 8:13</span>
</div>
<div class="user-gravatar32">
<a href="/users/11146075/tuananhcwrs"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/e643eda75c5d855afd13d58b86d9706b?s=32&amp;d=identicon&amp;r=PG&amp;f=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/11146075/tuananhcwrs">Tuananhcwrs</a><span class="d-none" itemprop="name">Tuananhcwrs</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">543</span><span title="4 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">4</span></span><span class="v-visible-sr">4 silver badges</span><span title="4 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">4</span></span><span class="v-visible-sr">4 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">5</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-54979082" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="54979082" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-98634738" class="comment js-comment " data-comment-id="98634738" data-comment-owner-id="5447136" data-comment-score="11">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="warm">11</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">Isn&#39;t it dangerous having such credentials in a simple config file viewable by anyone?</span>
&ndash;&nbsp;<a href="/users/5447136/bool3max"
title="1,538 reputation"
class="comment-user">bool3max</a>
<span class="comment-date" dir="ltr"><span title="2019-05-05 15:28:57Z, License: CC BY-SA 4.0" class="relativetime-clean">May 5 '19 at 15:28</span></span>
</div>
</div>
</li>
<li id="comment-98647664" class="comment js-comment " data-comment-id="98647664" data-comment-owner-id="11146075" data-comment-score="1">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">1</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">your question should be for another topic. Here we discus about how to config name and password for git global and locally.</span>
&ndash;&nbsp;<a href="/users/11146075/tuananhcwrs"
title="543 reputation"
class="comment-user">Tuananhcwrs</a>
<span class="comment-date" dir="ltr"><span title="2019-05-06 07:30:08Z, License: CC BY-SA 4.0" class="relativetime-clean">May 6 '19 at 7:30</span></span>
</div>
</div>
</li>
<li id="comment-98820928" class="comment js-comment " data-comment-id="98820928" data-comment-owner-id="1177024" data-comment-score="16">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="hot">16</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">I&#39;d just like to add that asking about possible security issues of an answer has a place here as it directly influences its quality and potentially thousands of users implementing it.</span>
&ndash;&nbsp;<a href="/users/1177024/michael-kargl"
title="622 reputation"
class="comment-user">Michael Kargl</a>
<span class="comment-date" dir="ltr"><span title="2019-05-11 16:51:15Z, License: CC BY-SA 4.0" class="relativetime-clean">May 11 '19 at 16:51</span></span>
</div>
</div>
</li>
<li id="comment-104572539" class="comment js-comment " data-comment-id="104572539" data-comment-owner-id="11968594" data-comment-score="2">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">2</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">doesn&#39;t work for me , added <code>--local</code> tag but again nothing happens</span>
&ndash;&nbsp;<a href="/users/11968594/payamb"
title="325 reputation"
class="comment-user">PayamB.</a>
<span class="comment-date" dir="ltr"><span title="2019-12-04 11:58:47Z, License: CC BY-SA 4.0" class="relativetime-clean">Dec 4 '19 at 11:58</span></span>
</div>
</div>
</li>
<li id="comment-117877990" class="comment js-comment " data-comment-id="117877990" data-comment-owner-id="695671" data-comment-score="0">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">I think @bool3max question is a fair one. No-one really answered though. <code>git config --global</code> is still only accessible to the user, at <code>~&#47;.gitconfig</code>, so in that sense it is probably no worse than a private ssh key (with no password protection) in your home directory, or things like <code>~&#47;.aws&#47;config</code> for aws cli. If you used <code>--system</code> for git config it would be available to all users on your computer, so better not do that, and no need to, although it would still be limited to the other users on your computer.</span>
&ndash;&nbsp;<a href="/users/695671/jason-s"
title="1,039 reputation"
class="comment-user">Jason S</a>
<span class="comment-date" dir="ltr"><span title="2021-03-18 00:21:57Z, License: CC BY-SA 4.0" class="relativetime-clean">Mar 18 at 0:21</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-54979082" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<a name="59745977"></a>
<div id="answer-59745977" class="answer" data-answerid="59745977" data-ownerid="8712494" data-score="35" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="59745977">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="35">35</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/59745977/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>I think <strong>it's safer to cache credentials</strong>, instead of store forever:</p>
<pre><code>git config --global credential.helper 'cache --timeout=10800'
</code></pre>
<p>now you can enter your username and password(<code>git pull</code> or ...), and keep using git for next 3 hours.</p>
<p>nice and safe.</p>
<p>Timeout is in seconds(3 hours in the example).</p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2020-01-15T06:14:22"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="59745977">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/59745977"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/59745977/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-59745977" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
<a href="/posts/59745977/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2020-12-27 09:15:13Z" class="relativetime">Dec 27 '20 at 9:15</span></a>
</div>
<div class="user-gravatar32">
</div>
<div class="user-details">
<div class="-flair">
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
answered <span title="2020-01-15 06:14:22Z" class="relativetime">Jan 15 '20 at 6:14</span>
</div>
<div class="user-gravatar32">
<a href="/users/8712494/amin-shojaei"><div class="gravatar-wrapper-32"><img src="https://lh6.googleusercontent.com/-iWUnn1PqAuw/AAAAAAAAAAI/AAAAAAAAAGQ/2OslFo_DLk4/photo.jpg?sz=32" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/8712494/amin-shojaei">Amin Shojaei</a><span class="d-none" itemprop="name">Amin Shojaei</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">2,035</span><span title="1 gold badge" aria-hidden="true"><span class="badge1"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 gold badge</span><span title="15 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">15</span></span><span class="v-visible-sr">15 silver badges</span><span title="27 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">27</span></span><span class="v-visible-sr">27 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">4</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-59745977" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="59745977" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-113399668" class="comment js-comment " data-comment-id="113399668" data-comment-owner-id="5936364" data-comment-score="3">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">3</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">syntax is invalid, quotes must be around &#39;cache --timeout=&lt;sec&gt;&#39;</span>
&ndash;&nbsp;<a href="/users/5936364/fmigneault"
title="191 reputation"
class="comment-user">fmigneault</a>
<span class="comment-date" dir="ltr"><span title="2020-09-29 21:10:19Z, License: CC BY-SA 4.0" class="relativetime-clean">Sep 29 '20 at 21:10</span></span>
</div>
</div>
</li>
<li id="comment-115357792" class="comment js-comment " data-comment-id="115357792" data-comment-owner-id="8712494" data-comment-score="0">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">@fmigneault It&#39;s the exact copy of that command which worked for me on Ubuntu terminal and last version of Git. What software are you using?</span>
&ndash;&nbsp;<a href="/users/8712494/amin-shojaei"
title="2,035 reputation"
class="comment-user">Amin Shojaei</a>
<span class="comment-date" dir="ltr"><span title="2020-12-11 12:33:30Z, License: CC BY-SA 4.0" class="relativetime-clean">Dec 11 '20 at 12:33</span></span>
</div>
</div>
</li>
<li id="comment-115415610" class="comment js-comment " data-comment-id="115415610" data-comment-owner-id="5936364" data-comment-score="1">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">1</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">I&#39;m using Ubuntu 20.04 with zsh. When I ran the command as in the original post, only <code>&#39;cache&#39;</code> part seemed to be interpreted as the value of <code>credentials.helper</code> to set, and <code>--timeout</code> was interpreted as another option of <code>git config</code>, which made syntax error. This makes sense to be honest considering how command options are usually parsed. Using <code>&#39;cache --timeout=&lt;secs&gt;&#39;</code> in quotes makes it explicit that this whole thing must be the set value under <code>credential.helper</code> and his just more portable. No space for interpretation how to read <code>--timemout</code> part.</span>
&ndash;&nbsp;<a href="/users/5936364/fmigneault"
title="191 reputation"
class="comment-user">fmigneault</a>
<span class="comment-date" dir="ltr"><span title="2020-12-14 06:12:56Z, License: CC BY-SA 4.0" class="relativetime-clean">Dec 14 '20 at 6:12</span></span>
<span title="this comment was edited 1 time">
<svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0zM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88z"/></svg>
</span>
</div>
</div>
</li>
<li id="comment-115454535" class="comment js-comment " data-comment-id="115454535" data-comment-owner-id="8712494" data-comment-score="2">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">2</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">@fmigneault I double checked with <code>git config --global -e</code> and as the Walter white said, &quot;You are God damn right!&quot; :). thanks, I&#39;ll edit my answer</span>
&ndash;&nbsp;<a href="/users/8712494/amin-shojaei"
title="2,035 reputation"
class="comment-user">Amin Shojaei</a>
<span class="comment-date" dir="ltr"><span title="2020-12-15 13:04:33Z, License: CC BY-SA 4.0" class="relativetime-clean">Dec 15 '20 at 13:04</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-59745977" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<a name="57229018"></a>
<div id="answer-57229018" class="answer" data-answerid="57229018" data-ownerid="151312" data-score="34" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="57229018">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="34">34</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/57229018/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>After going over <strong>dozens</strong> of SO posts, blogs, etc, I tried out <em>every</em> method, and this is what I came up with. It covers EVERYTHING.</p>
<h1><a href="https://coolaj86.com/articles/vanilla-devops-git-credentials-cheatsheet/" rel="noreferrer">The Vanilla DevOps Git Credentials &amp; Private Packages Cheatsheet</a></h1>
<p>These are all the ways and tools by which you can securely authenticate git to clone a repository <strong>without an interactive password prompt</strong>.</p>
<ul>
<li>SSH Public Keys
<ul>
<li>SSH_ASKPASS</li>
</ul></li>
<li>API Access Tokens
<ul>
<li>GIT_ASKPASS</li>
<li>.gitconfig insteadOf</li>
<li>.gitconfig [credential]</li>
<li>.git-credentials</li>
<li>.netrc</li>
</ul></li>
<li>Private Packages (for Free)
<ul>
<li>node / npm package.json</li>
<li>python / pip / eggs requirements.txt</li>
<li>ruby gems Gemfile</li>
<li>golang go.mod</li>
</ul></li>
</ul>
<h1>The Silver Bullet</h1>
<p>Want Just Works™? This is the magic silver bullet.</p>
<p>Get your Access Token (see the section in the cheatsheet if you need the Github or Gitea instructions for that) and set it in an environment variable (both for local dev and deployment):</p>
<pre class="lang-sh prettyprint-override"><code>MY_GIT_TOKEN=xxxxxxxxxxxxxxxx
</code></pre>
<p>For Github, copy and run these lines <em>verbatim</em>:</p>
<pre class="lang-sh prettyprint-override"><code>git config --global url."https://api:$MY_GIT_TOKEN@github.com/".insteadOf "https://github.com/"
git config --global url."https://ssh:$MY_GIT_TOKEN@github.com/".insteadOf "ssh://git@github.com/"
git config --global url."https://git:$MY_GIT_TOKEN@github.com/".insteadOf "git@github.com:"
</code></pre>
<p>Congrats, now any automated tool cloning git repositories won't be obstructed by a password prompt, whether using https or either style of ssh url.</p>
<p><strong>Not using Github?</strong></p>
<p>For other platforms (Gitea, Github, Bitbucket), just change the URL. Don't change the usernames (although arbitrary, they're needed for distinct config entries).</p>
<p><strong>Compatibility</strong></p>
<p>This works locally in MacOS, Linux, Windows (in Bash), Docker, CircleCI, Heroku, Akkeris, etc.</p>
<p><strong>More Info</strong></p>
<p>See the ".gitconfig insteadOf" section of the cheatsheet.</p>
<p><strong>Security</strong></p>
<p>See the "Security" section of the cheatsheet.</p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2019-07-27T03:59:23"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="57229018">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/57229018"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/57229018/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-57229018" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
answered <span title="2019-07-27 03:59:23Z" class="relativetime">Jul 27 '19 at 3:59</span>
</div>
<div class="user-gravatar32">
<a href="/users/151312/coolaj86"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/0a8b345ddcfc5401f578c850442f1e1b?s=32&amp;d=identicon&amp;r=PG" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/151312/coolaj86">coolaj86</a><span class="d-none" itemprop="name">coolaj86</span>
<div class="-flair">
<span class="reputation-score" title="reputation score 64,488" dir="ltr">64.5k</span><span title="14 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">14</span></span><span class="v-visible-sr">14 gold badges</span><span title="90 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">90</span></span><span class="v-visible-sr">90 silver badges</span><span title="108 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">108</span></span><span class="v-visible-sr">108 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">2</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-57229018" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="57229018" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-106516913" class="comment js-comment " data-comment-id="106516913" data-comment-owner-id="785213" data-comment-score="3">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">3</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">What I was after was <code>git config --global credential.&quot;https:&#47;&#47;somegithost.com&quot;.username MyUserName</code>, which is <i>in</i> your cheatsheet, but not anywhere else in this answer thread. That particular solution doesn&#39;t answer the OP&#39;s question, but it answered mine, so thanks!</span>
&ndash;&nbsp;<a href="/users/785213/thedudeabides"
title="1,248 reputation"
class="comment-user">TheDudeAbides</a>
<span class="comment-date" dir="ltr"><span title="2020-02-14 04:14:56Z, License: CC BY-SA 4.0" class="relativetime-clean">Feb 14 '20 at 4:14</span></span>
</div>
</div>
</li>
<li id="comment-115334591" class="comment js-comment " data-comment-id="115334591" data-comment-owner-id="5343387" data-comment-score="1">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">1</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">Finally: documentation on non-interactive global usage of an API access token for pipelines without Jenkins credentials helpers or Vault.</span>
&ndash;&nbsp;<a href="/users/5343387/matt-schuchard"
title="13,046 reputation"
class="comment-user">Matt Schuchard</a>
<span class="comment-date" dir="ltr"><span title="2020-12-10 16:12:39Z, License: CC BY-SA 4.0" class="relativetime-clean">Dec 10 '20 at 16:12</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-57229018" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<a name="51524605"></a>
<div id="answer-51524605" class="answer" data-answerid="51524605" data-ownerid="7179674" data-score="30" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="51524605">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="30">30</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/51524605/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>You can use git-credential-store to store your passwords unencrypted on the disk, protected only by the permissions of the file system.</p>
<p><strong>Example</strong></p>
<pre><code>$ git config credential.helper store
$ git push http://example.com/repo.git
Username: &lt;type your username&gt;
Password: &lt;type your password&gt;
[several days later]
$ git push http://example.com/repo.git
[your credentials are used automatically]
</code></pre>
<p>You can check the credentials stored in the file <code>~/.git-credentials</code></p>
<p>For more info visit
<a href="https://git-scm.com/docs/git-credential-store" rel="noreferrer">git-credential-store - Helper to store credentials on disk</a> </p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2018-07-25T17:27:56"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="51524605">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/51524605"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/51524605/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-51524605" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
answered <span title="2018-07-25 17:27:56Z" class="relativetime">Jul 25 '18 at 17:27</span>
</div>
<div class="user-gravatar32">
<a href="/users/7179674/david-navarro-astudillo"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/4oI0C.jpg?s=32&amp;g=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/7179674/david-navarro-astudillo">David Navarro Astudillo</a><span class="d-none" itemprop="name">David Navarro Astudillo</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">951</span><span title="9 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">9</span></span><span class="v-visible-sr">9 silver badges</span><span title="17 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">17</span></span><span class="v-visible-sr">17 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">0</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-51524605" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="51524605" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
</ul>
</div>
<div id="comments-link-51524605" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<a name="48988815"></a>
<div id="answer-48988815" class="answer" data-answerid="48988815" data-ownerid="1854667" data-score="20" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="48988815">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="20">20</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/48988815/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>You will be more secure if you use SSH authentication than username/password authentication. </p>
<p>If you are using a Mac, SSH client authentication is integrated into the MacOS keychain. Once you have created an SSH key, type into your terminal:</p>
<pre><code>ssh-add -K ~/.ssh/id_rsa
</code></pre>
<p>This will add the SSH private key to the MacOS keychain. The git client will use ssh when it connects to the remote server. As long as you have registered your ssh public key with the server, you will be fine.</p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2018-02-26T12:44:27"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="48988815">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/48988815"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/48988815/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-48988815" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
<a href="/posts/48988815/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2018-08-06 22:21:54Z" class="relativetime">Aug 6 '18 at 22:21</span></a>
</div>
<div class="user-gravatar32">
<a href="/users/51167/vy32"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/144ac0e81f73797307e5179df6ecd1f4?s=32&amp;d=identicon&amp;r=PG" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details">
<a href="/users/51167/vy32">vy32</a>
<div class="-flair">
<span class="reputation-score" title="reputation score 24,332" dir="ltr">24.3k</span><span title="30 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">30</span></span><span class="v-visible-sr">30 gold badges</span><span title="100 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">100</span></span><span class="v-visible-sr">100 silver badges</span><span title="197 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">197</span></span><span class="v-visible-sr">197 bronze badges</span>
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
answered <span title="2018-02-26 12:44:27Z" class="relativetime">Feb 26 '18 at 12:44</span>
</div>
<div class="user-gravatar32">
<a href="/users/1854667/birol-efe"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/EmK6y.jpg?s=32&amp;g=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/1854667/birol-efe">Birol Efe</a><span class="d-none" itemprop="name">Birol Efe</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">1,325</span><span title="12 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">12</span></span><span class="v-visible-sr">12 silver badges</span><span title="12 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">12</span></span><span class="v-visible-sr">12 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">6</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-48988815" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="48988815" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="1"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-87172138" class="comment js-comment " data-comment-id="87172138" data-comment-owner-id="3975144" data-comment-score="1">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">1</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">should be k not K?</span>
&ndash;&nbsp;<a href="/users/3975144/dez93-2000"
title="1,023 reputation"
class="comment-user">dez93_2000</a>
<span class="comment-date" dir="ltr"><span title="2018-04-28 15:23:11Z, License: CC BY-SA 3.0" class="relativetime-clean">Apr 28 '18 at 15:23</span></span>
</div>
</div>
</li>
<li id="comment-87215847" class="comment js-comment " data-comment-id="87215847" data-comment-owner-id="1854667" data-comment-score="1">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">1</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">FYI: I am working on a Mac. Having said that, from the &quot;man&quot; info: &quot;-k&quot; When loading keys into or deleting keys from the agent, process plain private keys only and skip certificates. &quot;-K&quot; When adding identities, each passphrase will also be stored in the user&#39;s keychain. When removing identities with -d, each passphrase will be removed from it.</span>
&ndash;&nbsp;<a href="/users/1854667/birol-efe"
title="1,325 reputation"
class="comment-user">Birol Efe</a>
<span class="comment-date" dir="ltr"><span title="2018-04-30 11:35:29Z, License: CC BY-SA 3.0" class="relativetime-clean">Apr 30 '18 at 11:35</span></span>
<span title="this comment was edited 3 times">
<svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0zM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88z"/></svg>
</span>
</div>
</div>
</li>
<li id="comment-87866553" class="comment js-comment " data-comment-id="87866553" data-comment-owner-id="529286" data-comment-score="3">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">3</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">I don&#39;t think this work for https-based repositories.</span>
&ndash;&nbsp;<a href="/users/529286/zakmck"
title="2,032 reputation"
class="comment-user">zakmck</a>
<span class="comment-date" dir="ltr"><span title="2018-05-19 13:49:58Z, License: CC BY-SA 4.0" class="relativetime-clean">May 19 '18 at 13:49</span></span>
</div>
</div>
</li>
<li id="comment-87973356" class="comment js-comment " data-comment-id="87973356" data-comment-owner-id="263268" data-comment-score="6">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="warm">6</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">This answer seems to confuse passwords (HTTPS repos) with SSH private keys.</span>
&ndash;&nbsp;<a href="/users/263268/steve-bennett"
title="84,611 reputation"
class="comment-user">Steve Bennett</a>
<span class="comment-date" dir="ltr"><span title="2018-05-23 04:51:27Z, License: CC BY-SA 4.0" class="relativetime-clean">May 23 '18 at 4:51</span></span>
</div>
</div>
</li>
<li id="comment-92132064" class="comment js-comment " data-comment-id="92132064" data-comment-owner-id="2127277" data-comment-score="2">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">2</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">I disagree. You can&#39;t be more secure by giving access to the host an <code>SSH</code> access. Using HTTP authentication, someone who steal the credentials would only have access to <code>GitHub&#47;GitLab</code>. Also token are designed to have a limited life.</span>
&ndash;&nbsp;<a href="/users/2127277/dimitri-kopriwa"
title="8,539 reputation"
class="comment-user">Dimitri Kopriwa</a>
<span class="comment-date" dir="ltr"><span title="2018-10-01 20:50:48Z, License: CC BY-SA 4.0" class="relativetime-clean">Oct 1 '18 at 20:50</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-48988815" data-rep=50 data-anon=true>
<a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button"></a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link " title="Expand to show all comments on this post" href=# onclick="" role="button">Show <b>1</b> more comment</a>
</div>
</div>
</div>
</div>
<a name="52238605"></a>
<div id="answer-52238605" class="answer" data-answerid="52238605" data-ownerid="10012522" data-score="13" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="52238605">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="13">13</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/52238605/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>In that case you need git credential helper to tell git to remember your GitHub password and username by using following command line :</p>
<pre><code>git config --global credential.helper wincred
</code></pre>
<p>and if you are using repo using SSH key then you need SSH key to authenticate.</p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2018-09-08T19:17:33"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="52238605">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/52238605"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/52238605/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-52238605" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
<a href="/posts/52238605/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2018-09-08 19:56:44Z" class="relativetime">Sep 8 '18 at 19:56</span></a>
</div>
<div class="user-gravatar32">
<a href="/users/1602555/karol-dowbecki"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/1sjqZ.jpg?s=32&amp;g=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details">
<a href="/users/1602555/karol-dowbecki">Karol Dowbecki</a>
<div class="-flair">
<span class="reputation-score" title="reputation score 38,860" dir="ltr">38.9k</span><span title="9 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">9</span></span><span class="v-visible-sr">9 gold badges</span><span title="58 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">58</span></span><span class="v-visible-sr">58 silver badges</span><span title="89 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">89</span></span><span class="v-visible-sr">89 bronze badges</span>
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
answered <span title="2018-09-08 19:17:33Z" class="relativetime">Sep 8 '18 at 19:17</span>
</div>
<div class="user-gravatar32">
<a href="/users/10012522/shaw"><div class="gravatar-wrapper-32"><img src="https://lh5.googleusercontent.com/-C9oyykUrJ2M/AAAAAAAAAAI/AAAAAAAAAAA/AB6qoq1mc74W7bFmybfZogFndZNmkYtnNA/mo/photo.jpg?sz=32" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/10012522/shaw">shaw</a><span class="d-none" itemprop="name">shaw</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">131</span><span title="1 silver badge" aria-hidden="true"><span class="badge2"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 silver badge</span><span title="2 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">2</span></span><span class="v-visible-sr">2 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">2</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-52238605" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="52238605" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-111249311" class="comment js-comment " data-comment-id="111249311" data-comment-owner-id="5281824" data-comment-score="1">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">1</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy"><code>wincred</code> is obsoleted, see <a href="https://stackoverflow.com/a/53184233/5281824">stackoverflow.com/a/53184233/5281824</a></span>
&ndash;&nbsp;<a href="/users/5281824/weaming"
title="3,507 reputation"
class="comment-user">weaming</a>
<span class="comment-date" dir="ltr"><span title="2020-07-15 07:46:45Z, License: CC BY-SA 4.0" class="relativetime-clean">Jul 15 '20 at 7:46</span></span>
</div>
</div>
</li>
<li id="comment-117922796" class="comment js-comment " data-comment-id="117922796" data-comment-owner-id="695671" data-comment-score="0">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">To add to what @weaming said, on Windows, manager-core is now bundled with the Git installer for Windows <a href="https://github.com/microsoft/Git-Credential-Manager-Core" rel="nofollow noreferrer">github.com/microsoft/Git-Credential-Manager-Core</a></span>
&ndash;&nbsp;<a href="/users/695671/jason-s"
title="1,039 reputation"
class="comment-user">Jason S</a>
<span class="comment-date" dir="ltr"><span title="2021-03-19 13:35:53Z, License: CC BY-SA 4.0" class="relativetime-clean">Mar 19 at 13:35</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-52238605" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<a name="57485506"></a>
<div id="answer-57485506" class="answer" data-answerid="57485506" data-ownerid="1794871" data-score="13" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="57485506">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="13">13</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/57485506/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>None of the answers above worked for me. I kept getting the following every time I wanted to <code>fetch</code> or <code>pull</code>:</p>
<p><strong><code>Enter passphrase for key '/Users/myusername/.ssh/id_rsa':</code></strong></p>
<hr>
<p><strong>For Macs</strong></p>
<p>I was able to stop it from asking my passphrase by:</p>
<ol>
<li>Open config by running: <code>vi ~/.ssh/config</code></li>
<li>Added the following: <code>UseKeychain yes</code></li>
<li>Saved and quit: Press <strong>Esc</strong>, then enter <code>:wq!</code></li>
</ol>
<hr>
<p><strong>For Windows</strong></p>
<p>I was able to get it to work using the info in this stackexchange:
<a href="https://unix.stackexchange.com/a/12201/348665">https://unix.stackexchange.com/a/12201/348665</a></p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2019-08-13T21:23:34"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="57485506">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/57485506"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/57485506/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-57485506" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
<a href="/posts/57485506/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2019-08-21 19:53:12Z" class="relativetime">Aug 21 '19 at 19:53</span></a>
</div>
<div class="user-gravatar32">
</div>
<div class="user-details">
<div class="-flair">
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
answered <span title="2019-08-13 21:23:34Z" class="relativetime">Aug 13 '19 at 21:23</span>
</div>
<div class="user-gravatar32">
<a href="/users/1794871/gene-parcellano"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/jYGXY.jpg?s=32&amp;g=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/1794871/gene-parcellano">Gene Parcellano</a><span class="d-none" itemprop="name">Gene Parcellano</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">4,923</span><span title="3 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">3</span></span><span class="v-visible-sr">3 gold badges</span><span title="30 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">30</span></span><span class="v-visible-sr">30 silver badges</span><span title="38 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">38</span></span><span class="v-visible-sr">38 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">1</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-57485506" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="57485506" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-104497169" class="comment js-comment " data-comment-id="104497169" data-comment-owner-id="2685239" data-comment-score="1">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">1</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">that&#39;s because you are using SSH protocol (other answers use HTTPS).</span>
&ndash;&nbsp;<a href="/users/2685239/mariusm"
title="1,148 reputation"
class="comment-user">mariusm</a>
<span class="comment-date" dir="ltr"><span title="2019-12-02 08:13:18Z, License: CC BY-SA 4.0" class="relativetime-clean">Dec 2 '19 at 8:13</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-57485506" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<a name="55717179"></a>
<div id="answer-55717179" class="answer" data-answerid="55717179" data-ownerid="5884955" data-score="9" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="55717179">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="9">9</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/55717179/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>Apart from editing the <code>~/.gitconfig</code> file, that you can do if you ask:</p>
<pre><code>git config --local --edit
</code></pre>
<p>or</p>
<pre><code>git config --global --edit
</code></pre>
<h3>Note to always use <strong>single</strong> quotes:</h3>
<pre><code>git config --local user.name 'your username'
git config --local user.password 'your password'
</code></pre>
<p>or</p>
<pre><code>git config --global user.name 'your username'
git config --global user.password 'your password'
</code></pre>
<p>Your username and password may use some characters that would break your password if you use double quotes.</p>
<p><code>--local</code> or <code>--global</code> means configuration params are saved for the project or for the os user.</p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2019-04-16T21:58:59"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="55717179">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/55717179"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/55717179/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-55717179" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
<a href="/posts/55717179/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2019-06-08 12:24:42Z" class="relativetime">Jun 8 '19 at 12:24</span></a>
</div>
<div class="user-gravatar32">
</div>
<div class="user-details">
<div class="-flair">
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
answered <span title="2019-04-16 21:58:59Z" class="relativetime">Apr 16 '19 at 21:58</span>
</div>
<div class="user-gravatar32">
<a href="/users/5884955/prosti"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/J55wI.jpg?s=32&amp;g=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/5884955/prosti">prosti</a><span class="d-none" itemprop="name">prosti</span>
<div class="-flair">
<span class="reputation-score" title="reputation score 27,309" dir="ltr">27.3k</span><span title="7 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">7</span></span><span class="v-visible-sr">7 gold badges</span><span title="130 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">130</span></span><span class="v-visible-sr">130 silver badges</span><span title="118 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">118</span></span><span class="v-visible-sr">118 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">3</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-55717179" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="55717179" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-100343572" class="comment js-comment " data-comment-id="100343572" data-comment-owner-id="5884955" data-comment-score="0">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">Check also this <a href="https://stackoverflow.com/a/56506187/5884955">one</a> that explains even more.</span>
&ndash;&nbsp;<a href="/users/5884955/prosti"
title="27,309 reputation"
class="comment-user">prosti</a>
<span class="comment-date" dir="ltr"><span title="2019-07-05 08:14:15Z, License: CC BY-SA 4.0" class="relativetime-clean">Jul 5 '19 at 8:14</span></span>
</div>
</div>
</li>
<li id="comment-111783985" class="comment js-comment " data-comment-id="111783985" data-comment-owner-id="284588" data-comment-score="0">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">Are you sure single quotes will work on Windows, other than inside WSL?</span>
&ndash;&nbsp;<a href="/users/284588/yitz"
title="4,897 reputation"
class="comment-user">Yitz</a>
<span class="comment-date" dir="ltr"><span title="2020-08-02 11:44:02Z, License: CC BY-SA 4.0" class="relativetime-clean">Aug 2 '20 at 11:44</span></span>
</div>
</div>
</li>
<li id="comment-111784805" class="comment js-comment " data-comment-id="111784805" data-comment-owner-id="5884955" data-comment-score="0">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">I usually do things from Windows PowerShell and this single quote worked on Windows (no WSL).</span>
&ndash;&nbsp;<a href="/users/5884955/prosti"
title="27,309 reputation"
class="comment-user">prosti</a>
<span class="comment-date" dir="ltr"><span title="2020-08-02 12:39:18Z, License: CC BY-SA 4.0" class="relativetime-clean">Aug 2 '20 at 12:39</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-55717179" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<a name="57833610"></a>
<div id="answer-57833610" class="answer" data-answerid="57833610" data-ownerid="7862778" data-score="9" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="57833610">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="9">9</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/57833610/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>just use</p>
<pre><code>git config --global credential.helper store
</code></pre>
<p>and do the <i>git pull</i>, it will ask for username and password, from now on it will not provide any prompt for username and password it will store the details</p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2019-09-07T12:17:34"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="57833610">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/57833610"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/57833610/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-57833610" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
answered <span title="2019-09-07 12:17:34Z" class="relativetime">Sep 7 '19 at 12:17</span>
</div>
<div class="user-gravatar32">
<a href="/users/7862778/srikanth-josyula"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/a705f66456ce95d39624624eb3784841?s=32&amp;d=identicon&amp;r=PG&amp;f=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/7862778/srikanth-josyula">Srikanth Josyula</a><span class="d-none" itemprop="name">Srikanth Josyula</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">446</span><span title="4 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">4</span></span><span class="v-visible-sr">4 silver badges</span><span title="12 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">12</span></span><span class="v-visible-sr">12 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">1</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-57833610" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="57833610" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-102096344" class="comment js-comment " data-comment-id="102096344" data-comment-owner-id="11342519" data-comment-score="8">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="warm">8</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">You&#39;ve just basically repeated the <a href="https://stackoverflow.com/a/35942890/11342519">accepted answer</a>.</span>
&ndash;&nbsp;<a href="/users/11342519/jsamol"
title="2,337 reputation"
class="comment-user">jsamol</a>
<span class="comment-date" dir="ltr"><span title="2019-09-07 12:43:52Z, License: CC BY-SA 4.0" class="relativetime-clean">Sep 7 '19 at 12:43</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-57833610" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<a name="57532225"></a>
<div id="answer-57532225" class="answer" data-answerid="57532225" data-ownerid="8375400" data-score="9" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="57532225">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="9">9</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/57532225/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<h1>Store username and password in .git-credentials</h1>
<p><code>.git-credentials</code> is where your username and password(access token) is stored when you run <code>git config --global credential.helper store</code>, which is what other answers suggest, and then type in your username and password or access token:</p>
<pre><code>https://${username_or_access_token}:${password_or_access_token}@github.com
</code></pre>
<p>So, in order to save the username and password(access token):</p>
<pre><code>git config —-global credential.helper store
echo “https://${username}:${password_or_access_token}@github.com“ &gt; ~/.git-credentials
</code></pre>
<p>This is very useful for github robot, e.g. to solve <a href="https://stackoverflow.com/questions/36948145/chain-automated-builds-in-the-same-docker-hub-repository">Chain automated builds in the same docker repository</a> by having rules for different branch and then trigger it by pushing to it in <code>post_push</code> hooker in docker hub.</p>
<p>An example of this can be seen <a href="https://stackoverflow.com/a/57534431/8375400">here</a> in stackoverflow.</p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2019-08-16T23:44:04"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="57532225">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/57532225"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/57532225/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-57532225" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
<a href="/posts/57532225/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2019-12-05 09:07:01Z" class="relativetime">Dec 5 '19 at 9:07</span></a>
</div>
<div class="user-gravatar32">
</div>
<div class="user-details">
<div class="-flair">
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
answered <span title="2019-08-16 23:44:04Z" class="relativetime">Aug 16 '19 at 23:44</span>
</div>
<div class="user-gravatar32">
<a href="/users/8375400/jiahao-xu"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/2b4137a39b4c1a7f0f08d017a10b785d?s=32&amp;d=identicon&amp;r=PG&amp;f=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/8375400/jiahao-xu">JiaHao Xu</a><span class="d-none" itemprop="name">JiaHao Xu</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">1,578</span><span title="9 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">9</span></span><span class="v-visible-sr">9 silver badges</span><span title="22 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">22</span></span><span class="v-visible-sr">22 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">2</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-57532225" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="57532225" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-103990790" class="comment js-comment " data-comment-id="103990790" data-comment-owner-id="7885903" data-comment-score="1">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">1</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">Thanks, you&#39;re a life savior! We can also set https://${access_token}:${access_token}@github.com</span>
&ndash;&nbsp;<a href="/users/7885903/lucas-mendes-mota-da-fonseca"
title="996 reputation"
class="comment-user">Lucas Mendes Mota Da Fonseca</a>
<span class="comment-date" dir="ltr"><span title="2019-11-14 15:09:31Z, License: CC BY-SA 4.0" class="relativetime-clean">Nov 14 '19 at 15:09</span></span>
</div>
</div>
</li>
<li id="comment-104276281" class="comment js-comment " data-comment-id="104276281" data-comment-owner-id="8375400" data-comment-score="1">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
<span title="number of &#x27;useful comment&#x27; votes received"
class="cool">1</span>
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">@LucasMendesMotaDaFonseca access token can be used as username???</span>
&ndash;&nbsp;<a href="/users/8375400/jiahao-xu"
title="1,578 reputation"
class="comment-user">JiaHao Xu</a>
<span class="comment-date" dir="ltr"><span title="2019-11-24 03:48:18Z, License: CC BY-SA 4.0" class="relativetime-clean">Nov 24 '19 at 3:48</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-57532225" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<a name="64038614"></a>
<div id="answer-64038614" class="answer" data-answerid="64038614" data-ownerid="992767" data-score="7" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="64038614">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="7">7</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/64038614/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>If you are using the <strong>Git Credential Manager on Windows</strong>...</p>
<p><code>git config -l</code> should show:</p>
<pre><code>credential.helper=manager
</code></pre>
<p>However, if you are not getting prompted for a credential then follow these steps:</p>
<ol>
<li>Open <em>Control Panel</em> from the Start menu</li>
<li>Select <em>User Accounts</em></li>
<li>Select <em>Manage your credentials</em> in the left hand menu</li>
<li>Delete any credentials related to Git or GitHub</li>
</ol>
<p>Also ensure you have <strong>not</strong> set <code>HTTP_PROXY</code>, <code>HTTPS_PROXY</code>, <code>NO_PROXY</code> environmental variables if you have proxy and your Git server is on the internal network.</p>
<p>You can also test Git fetch/push/pull using <code>git-gui</code> which links to credential manager binaries in <code>C:\Users\&lt;username&gt;\AppData\Local\Programs\Git\mingw64\libexec\git-core</code></p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2020-09-24T02:14:29"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="64038614">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/64038614"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/64038614/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-64038614" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
<a href="/posts/64038614/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2020-12-01 16:37:06Z" class="relativetime">Dec 1 '20 at 16:37</span></a>
</div>
<div class="user-gravatar32">
<a href="/users/1326147/armfoot"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/YHFbH.png?s=32&amp;g=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details">
<a href="/users/1326147/armfoot">Armfoot</a>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">4,147</span><span title="2 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">2</span></span><span class="v-visible-sr">2 gold badges</span><span title="39 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">39</span></span><span class="v-visible-sr">39 silver badges</span><span title="58 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">58</span></span><span class="v-visible-sr">58 bronze badges</span>
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
answered <span title="2020-09-24 02:14:29Z" class="relativetime">Sep 24 '20 at 2:14</span>
</div>
<div class="user-gravatar32">
<a href="/users/992767/nigel-sheridan-smith"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/d94484ade46426d97ae7e30156aa24ad?s=32&amp;d=identicon&amp;r=PG" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/992767/nigel-sheridan-smith">Nigel Sheridan-Smith</a><span class="d-none" itemprop="name">Nigel Sheridan-Smith</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">647</span><span title="7 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">7</span></span><span class="v-visible-sr">7 silver badges</span><span title="10 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">10</span></span><span class="v-visible-sr">10 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">0</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-64038614" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="64038614" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
</ul>
</div>
<div id="comments-link-64038614" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<a name="61773714"></a>
<div id="answer-61773714" class="answer" data-answerid="61773714" data-ownerid="6499075" data-score="6" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="61773714">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="6">6</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/61773714/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>Check official git documentation:</p>
<blockquote>
<p>If you use the SSH transport for connecting to remotes, its possible
for you to have a key without a passphrase, which allows you to
securely transfer data without typing in your username and password.
However, this isnt possible with the HTTP protocols every
connection needs a username and password. This gets even harder for
systems with two-factor authentication, where the token you use for a
password is randomly generated and unpronounceable.</p>
<p>Fortunately, Git has a credentials system that can help with this. Git
has a few options provided in the box:</p>
<ul>
<li><p>The default is not to cache at all. Every connection will prompt you
for your username and password.</p></li>
<li><p>The “cache” mode keeps credentials in memory for a certain period of
time. None of the passwords are ever stored on disk, and they are
purged from the cache after 15 minutes.</p></li>
<li><p>The “store” mode saves the credentials to a plain-text file on disk,
and they never expire. This means that until you change your password
for the Git host, you wont ever have to type in your credentials
again. The downside of this approach is that your passwords are stored
in cleartext in a plain file in your home directory.</p></li>
<li><p>If youre using a Mac, Git comes with an “osxkeychain” mode, which
caches credentials in the secure keychain thats attached to your
system account. This method stores the credentials on disk, and they
never expire, but theyre encrypted with the same system that stores
HTTPS certificates and Safari auto-fills.</p></li>
<li><p>If youre using Windows, you can install a helper called “Git
Credential Manager for Windows.” This is similar to the “osxkeychain”
helper described above, but uses the Windows Credential Store to
control sensitive information. It can be found at
<a href="https://github.com/Microsoft/Git-Credential-Manager-for-Windows" rel="noreferrer">https://github.com/Microsoft/Git-Credential-Manager-for-Windows</a>.</p></li>
</ul>
<p>You can choose one of these methods by setting a Git configuration
value:</p>
</blockquote>
<pre><code>$ git config --global credential.helper cache
$ git config --global credential.helper store
</code></pre>
<p><a href="https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage" rel="noreferrer">https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage</a></p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2020-05-13T11:42:32"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="61773714">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/61773714"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/61773714/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-61773714" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
answered <span title="2020-05-13 11:42:32Z" class="relativetime">May 13 '20 at 11:42</span>
</div>
<div class="user-gravatar32">
<a href="/users/6499075/sma-ma"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/a50a67193342fee4e6c56b5f5a170d50?s=32&amp;d=identicon&amp;r=PG&amp;f=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/6499075/sma-ma">Sma Ma</a><span class="d-none" itemprop="name">Sma Ma</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">1,739</span><span title="14 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">14</span></span><span class="v-visible-sr">14 silver badges</span><span title="29 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">29</span></span><span class="v-visible-sr">29 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount"></span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-61773714" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="61773714" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
</ul>
</div>
<div id="comments-link-61773714" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<a name="59645537"></a>
<div id="answer-59645537" class="answer" data-answerid="59645537" data-ownerid="8580484" data-score="4" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="59645537">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="4">4</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/59645537/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>After reading the thread in full and experimenting with most of the answers to this question, I eventually found the procedure that works for me. I want to share it in case someone has to deal with a complex use case but still do not want to go through the full thread and the <a href="https://git-scm.com/docs/gitcredentials" rel="nofollow noreferrer">gitcredentials</a>, <a href="https://git-scm.com/docs/git-credential-store" rel="nofollow noreferrer">gitcredentials-store</a> etc. man pages, as I did. </p>
<p>Find below the procedure I suggest <strong>IF</strong> you (like me) have to deal with several repositories from several providers (GitLab, GitHub, Bitbucket, etc.) using several different username / password combinations. If you instead have only a single account to work with, then you might be better off employing the <code>git config --global credential.helper store</code> or <code>git config --global user.name "your username"</code> etc. solutions that have been very well explained in previous answers.</p>
<p>My solution:</p>
<ol>
<li>unset global credentials helper, in case some former experimentation gets in the way :)</li>
</ol>
<p><code>&gt; git config --global --unset credentials.helper</code></p>
<ol start="2">
<li>move to the root directory of your repo and disable the local credential helper (if needed)</li>
</ol>
<p><code>&gt; cd /path/to/my/repo</code></p>
<p><code>&gt; git config --unset credential.helper</code></p>
<ol start="3">
<li>create a file to store your repo's credentials into</li>
</ol>
<p><code>&gt; git config credential.helper 'store --file ~/.git_repo_credentials'</code></p>
<p><strong>Note</strong>: this command creates a new file named ".git_repo_credentials" into your home directory, to which Git stores your credentials. If you do not specify a file name, Git uses the default ".git_credentials". In this case simply issuing the following command will do:</p>
<p><code>&gt; git config credential.helper store</code></p>
<ol start="4">
<li>set your username</li>
</ol>
<p><code>git config credential.*.username my_user_name</code></p>
<p><strong>Note</strong>: using "*" is usually ok if your repositories are from the same provider (e.g. GitLab). If instead your repositories are hosted by different providers then I suggest to explicitly set the link to the provider for every repository, like in the following example (for GitLab):</p>
<p><code>git config credential.https://gitlab.com.username my_user_name</code></p>
<p>At this point if you issue a command requiring your credentials (e.g. <code>git pull</code>) you will be asked for the password corresponding to "my_user_name". This is only required once because git stores the credentials to ".git_repo_credentials" and automatically uses the same data at subsequent accesses.</p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2020-01-08T12:06:36"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="59645537">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/59645537"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/59645537/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-59645537" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
<a href="/posts/59645537/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2020-01-08 12:26:09Z" class="relativetime">Jan 8 '20 at 12:26</span></a>
</div>
<div class="user-gravatar32">
</div>
<div class="user-details">
<div class="-flair">
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
answered <span title="2020-01-08 12:06:36Z" class="relativetime">Jan 8 '20 at 12:06</span>
</div>
<div class="user-gravatar32">
<a href="/users/8580484/sal-borrelli"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/Ie7Yf.jpg?s=32&amp;g=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/8580484/sal-borrelli">Sal Borrelli</a><span class="d-none" itemprop="name">Sal Borrelli</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">1,304</span><span title="11 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">11</span></span><span class="v-visible-sr">11 silver badges</span><span title="13 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">13</span></span><span class="v-visible-sr">13 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount"></span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-59645537" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="59645537" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
</ul>
</div>
<div id="comments-link-59645537" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<a name="56898761"></a>
<div id="answer-56898761" class="answer" data-answerid="56898761" data-ownerid="32453" data-score="4" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="56898761">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="4">4</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/56898761/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>From the comment by rifrol, on Linux Ubuntu, from this <a href="https://stackoverflow.com/a/40312117/32453">answer</a>, here's how in Ubuntu:</p>
<pre><code>sudo apt-get install libsecret-1-0 libsecret-1-dev
cd /usr/share/doc/git/contrib/credential/libsecret
sudo make
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
</code></pre>
<p>Some other distro's provide the binary so you don't have to build it.</p>
<p>In OS X it typically comes "built" with a default module of "osxkeychain" so you get it for free.</p>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2019-07-05T07:48:52"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="56898761">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/56898761"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/56898761/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-56898761" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
<a href="/posts/56898761/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2020-04-30 16:45:03Z" class="relativetime">Apr 30 '20 at 16:45</span></a>
</div>
<div class="user-gravatar32">
</div>
<div class="user-details">
<div class="-flair">
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
answered <span title="2019-07-05 07:48:52Z" class="relativetime">Jul 5 '19 at 7:48</span>
</div>
<div class="user-gravatar32">
<a href="/users/32453/rogerdpack"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/bec38d63650c8912b6ba9b557fb953b9?s=32&amp;d=identicon&amp;r=PG" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/32453/rogerdpack">rogerdpack</a><span class="d-none" itemprop="name">rogerdpack</span>
<div class="-flair">
<span class="reputation-score" title="reputation score 50,851" dir="ltr">50.9k</span><span title="31 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">31</span></span><span class="v-visible-sr">31 gold badges</span><span title="214 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">214</span></span><span class="v-visible-sr">214 silver badges</span><span title="332 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">332</span></span><span class="v-visible-sr">332 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount"></span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-56898761" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="56898761" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
</ul>
</div>
<div id="comments-link-56898761" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<a name="64744371"></a>
<div id="answer-64744371" class="answer" data-answerid="64744371" data-ownerid="342669" data-score="4" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer">
<div class="post-layout">
<div class="votecell post-layout--left">
<div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="64744371">
<button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"/></svg></button>
<div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="4">4</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset c-pointer" data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary"><svg aria-hidden="true" class="m0 svg-icon iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 10h32L18 26 2 10z"/></svg></button>
<div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted&#x2026;" tabindex="0" role="note" aria-label="Accepted">
<div class="ta-center">
<svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"/></svg>
</div>
</div>
<a class="js-post-issue grid--cell s-btn s-btn__unset c-pointer py6 mx-auto" href="/posts/64744371/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8 0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3 9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"/></svg></a>
</div>
</div>
<div class="answercell post-layout--right">
<div class="s-prose js-post-body" itemprop="text">
<p>For windows users look at the .gitconfig file and check what has been configured for the credential helper if you have the following...</p>
<p>[credential &quot;helperselector&quot;]
selected = wincred</p>
<p>you'll find the credentials in the Windows Credential Manager.</p>
<p><a href="https://i.stack.imgur.com/RrIIT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RrIIT.png" alt="enter image description here" /></a></p>
<p>There you can edit the credential.</p>
<p>EDIT: Wincred has been deprecated, see...</p>
<p><a href="https://github.com/git-for-windows/git-sdk-64/tree/main/mingw64/doc/git-credential-manager" rel="nofollow noreferrer">https://github.com/git-for-windows/git-sdk-64/tree/main/mingw64/doc/git-credential-manager</a></p>
<p>So alternatively you may want to reconfigure git to use the built-in GIT credential manager...</p>
<pre><code>git config --global credential.helper manager
</code></pre>
</div>
<div class="mt24">
<div class="grid fw-wrap ai-start jc-end gs8 gsy">
<time itemprop="dateCreated" datetime="2020-11-09T00:15:25"></time>
<div class="grid--cell mr16" style="flex: 1 1 100px;">
<div class="js-post-menu pt2" data-post-id="64744371">
<div class="grid d-flex gs8 s-anchors s-anchors__muted fw-wrap">
<div class="grid--cell">
<a href="/a/64744371"
rel="nofollow"
itemprop="url"
class="js-share-link js-gps-track"
title="Short permalink to this answer"
data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })"
data-controller="se-share-sheet"
data-se-share-sheet-title="Share a link to this answer"
data-se-share-sheet-subtitle=""
data-se-share-sheet-post-type="answer"
data-se-share-sheet-social="facebook twitter devto"
data-se-share-sheet-location="2"
data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f"
data-se-share-sheet-license-name="CC BY-SA 4.0"
data-s-popover-placement="bottom-start">Share</a>
</div>
<div class="grid--cell">
<a href="/posts/64744371/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a>
</div>
<div class="grid--cell">
<button type="button"
id="btnFollowPost-64744371" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track"
data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })"
data-controller="s-tooltip " data-s-tooltip-placement="bottom"
data-s-popover-placement="bottom" aria-controls=""
title="Follow this answer to receive notifications">
Follow
</button>
</div>
</div>
<div class="js-menu-popup-container"></div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info ">
<div class="user-action-time">
<a href="/posts/64744371/revisions" title="show all edits to this post"
class="js-gps-track"
data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2020-11-30 00:13:40Z" class="relativetime">Nov 30 '20 at 0:13</span></a>
</div>
<div class="user-gravatar32">
</div>
<div class="user-details">
<div class="-flair">
</div>
</div>
</div>
</div>
<div class="post-signature grid--cell fl0">
<div class="user-info user-hover">
<div class="user-action-time">
answered <span title="2020-11-09 00:15:25Z" class="relativetime">Nov 9 '20 at 0:15</span>
</div>
<div class="user-gravatar32">
<a href="/users/342669/mick"><div class="gravatar-wrapper-32"><img src="https://i.stack.imgur.com/5LVIK.jpg?s=32&amp;g=1" alt="" width="32" height="32" class="bar-sm"></div></a>
</div>
<div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person">
<a href="/users/342669/mick">Mick</a><span class="d-none" itemprop="name">Mick</span>
<div class="-flair">
<span class="reputation-score" title="reputation score " dir="ltr">5,744</span><span title="4 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">4</span></span><span class="v-visible-sr">4 gold badges</span><span title="40 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">40</span></span><span class="v-visible-sr">40 silver badges</span><span title="60 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">60</span></span><span class="v-visible-sr">60 bronze badges</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span class="d-none" itemprop="commentCount">3</span>
<div class="post-layout--right js-post-comments-component">
<div id="comments-64744371" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="64744371" data-min-length="15">
<ul class="comments-list js-comments-list"
data-remaining-comments-count="0"
data-canpost="false"
data-cansee="true"
data-comments-unavailable="false"
data-addlink-disabled="true">
<li id="comment-115647802" class="comment js-comment " data-comment-id="115647802" data-comment-owner-id="9594605" data-comment-score="0">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">I am having an issue with the manager-core helper, where my credentials disappear every day - Any clue on how to solve this?</span>
&ndash;&nbsp;<a href="/users/9594605/jonathan"
title="51 reputation"
class="comment-user">Jonathan</a>
<span class="comment-date" dir="ltr"><span title="2020-12-22 17:26:08Z, License: CC BY-SA 4.0" class="relativetime-clean">Dec 22 '20 at 17:26</span></span>
</div>
</div>
</li>
<li id="comment-116323337" class="comment js-comment " data-comment-id="116323337" data-comment-owner-id="664247" data-comment-score="0">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">The edit was the answer I was looking for, THANKS!</span>
&ndash;&nbsp;<a href="/users/664247/generic-user"
title="51 reputation"
class="comment-user">generic-user</a>
<span class="comment-date" dir="ltr"><span title="2021-01-19 12:48:02Z, License: CC BY-SA 4.0" class="relativetime-clean">Jan 19 at 12:48</span></span>
</div>
</div>
</li>
<li id="comment-117923085" class="comment js-comment " data-comment-id="117923085" data-comment-owner-id="695671" data-comment-score="0">
<div class="js-comment-actions comment-actions">
<div class="comment-score js-comment-edit-hide">
</div>
</div>
<div class="comment-text js-comment-text-and-form">
<div class="comment-body js-comment-edit-hide">
<span class="comment-copy">@Jonathan The Credential manager bundled with Git for Windows changed a few times recently so the easiest option is to just download the newest Git for Windows and install over the top and select the credential manager in the installer. The credential manager is a separate utility, which you can see it on GitHub at <a href="https://github.com/microsoft/Git-Credential-Manager-Core" rel="nofollow noreferrer">github.com/microsoft/Git-Credential-Manager-Core</a>, but better to just let the Git for Windows installer, install it, so you know you have version compatibility</span>
&ndash;&nbsp;<a href="/users/695671/jason-s"
title="1,039 reputation"
class="comment-user">Jason S</a>
<span class="comment-date" dir="ltr"><span title="2021-03-19 13:46:28Z, License: CC BY-SA 4.0" class="relativetime-clean">Mar 19 at 13:46</span></span>
</div>
</div>
</li>
</ul>
</div>
<div id="comments-link-64744371" data-rep=50 data-anon=true>
<a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like &#x201C;&#x2B;1&#x201D; or &#x201C;thanks&#x201D;." href="#" role="button">Add a comment</a>
<span class="js-link-separator dno">&nbsp;|&nbsp;</span>
<a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href=# onclick="" role="button"></a>
</div>
</div>
</div>
</div>
<aside class="s-notice s-notice__info js-post-notice mb16" role="status">
<div class="grid fd-column fw-nowrap">
<div class="grid fw-nowrap">
<div class="grid--cell mr8">
<svg aria-hidden="true" class="svg-icon iconFire" width="18" height="18" viewBox="0 0 18 18"><path opacity=".6" d="M13.18 9c-.8.33-1.46.6-1.97 1.3A9.21 9.21 0 0010 13.89a10 10 0 001.32-.8 2.53 2.53 0 0 1-.63 2.91h.78a3 3 0 001.66-.5 4.15 4.15 0 0 0 1.26-1.61c.4-.96.47-1.7.55-2.73.05-1.24-.1-2.49-.46-3.68a2 2 0 01-.4.91 2.1 2.1 0 0 1-.9.62z" fill="#FF6700"/><path d="M10.4 12.11a7.1 7.1 0 01.78-1.76c.3-.47.81-.8 1.37-1.08 0 0-.05-3.27-1.55-5.27-1.5-2-3.37-2.75-4.95-2.61 0 0 4.19 2.94 1.18 5.67-2.14 1.92-3.64 3.81-3.1 5.94a4.14 4.14 0 003.1 3 4.05 4.05 0 0 1 1.08-3.89C9.42 10.92 8 9.79 8 9.79c.67.02 1.3.28 1.81.72a2 2 0 01.58 1.6z" fill="#EF2E2E"/></svg>
</div>
<div class="grid--cell wmn0 fl1 lh-lg">
<div class="grid--cell fl1 lh-lg">
<b><a href="/help/privileges/protect-questions">Highly active question</a></b>. Earn 10 reputation in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity.
</div>
</div>
</div>
</div>
</aside>
<h2 class="bottom-notice" data-loc="1">
Not the answer you&#x27;re looking for? Browse other questions tagged <a href="/questions/tagged/git" class="post-tag" title="show questions tagged &#39;git&#39;" rel="tag">git</a> <a href="/questions/tagged/credentials" class="post-tag" title="show questions tagged &#39;credentials&#39;" rel="tag">credentials</a> <a href="/questions/tagged/git-config" class="post-tag" title="show questions tagged &#39;git-config&#39;" rel="tag">git-config</a> <a href="/questions/tagged/git-extensions" class="post-tag" title="show questions tagged &#39;git-extensions&#39;" rel="tag">git-extensions</a> or <a href="/questions/ask">ask your own question</a>. </h2>
</div>
</div>
<div id="sidebar" class="show-votes" role="complementary" aria-label="sidebar">
<div class="s-sidebarwidget s-sidebarwidget__yellow s-anchors s-anchors__grayscale mb16" data-tracker="cb=1">
<ul class="d-block p0 m0">
<div class="s-sidebarwidget--header s-sidebarwidget__small-bold-text fc-light d:fc-black-900 bb bbw1">
The Overflow Blog
</div>
<li class="s-sidebarwidget--item grid px16">
<div class="grid--cell1 fl-shrink0">
<svg aria-hidden="true" class="va-text-top svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0zM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88z"/></svg> </div>
<div class="grid--cell wmn0 ow-break-word">
<a href="https://stackoverflow.blog/2021/06/08/podcast-345-a-good-software-tutorial-explains-the-how-a-great-one-explains-the-why/" class="js-gps-track" title="Podcast 345: A good software tutorial explains the How. A great one explains the Why." data-ga="[&quot;community bulletin board&quot;,&quot;The Overflow Blog&quot;,&quot;https://stackoverflow.blog/2021/06/08/podcast-345-a-good-software-tutorial-explains-the-how-a-great-one-explains-the-why/&quot;,null,null]" data-gps-track="communitybulletin.click({ priority: 1, position: 0 })">Podcast 345: A good software tutorial explains the How. A great one explains&hellip;</a>
</div>
</li>
<li class="s-sidebarwidget--item grid px16">
<div class="grid--cell1 fl-shrink0">
<svg aria-hidden="true" class="va-text-top svg-icon iconPencilSm" width="14" height="14" viewBox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0zM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88z"/></svg> </div>
<div class="grid--cell wmn0 ow-break-word">
<a href="https://stackoverflow.blog/2021/06/07/most-developers-believe-blockchain-technology-is-a-game-changer-3/" class="js-gps-track" data-ga="[&quot;community bulletin board&quot;,&quot;The Overflow Blog&quot;,&quot;https://stackoverflow.blog/2021/06/07/most-developers-believe-blockchain-technology-is-a-game-changer-3/&quot;,null,null]" data-gps-track="communitybulletin.click({ priority: 1, position: 1 })">Most developers believe blockchain technology is a game changer</a>
</div>
</li>
<div class="s-sidebarwidget--header s-sidebarwidget__small-bold-text fc-light d:fc-black-900 bb bbw1">
Featured on Meta
</div>
<li class="s-sidebarwidget--item grid px16">
<div class="grid--cell1 fl-shrink0">
<div class="favicon favicon-stackoverflowmeta" title="Meta Stack Overflow"></div> </div>
<div class="grid--cell wmn0 ow-break-word">
<a href="https://meta.stackoverflow.com/questions/407914/take-the-2021-developer-survey" class="js-gps-track" data-ga="[&quot;community bulletin board&quot;,&quot;Featured on Meta&quot;,&quot;https://meta.stackoverflow.com/questions/407914/take-the-2021-developer-survey&quot;,null,null]" data-gps-track="communitybulletin.click({ priority: 6, position: 2 })">Take the 2021 Developer Survey</a>
</div>
</li>
</ul>
</div>
<div class="js-zone-container zone-container-sidebar">
<div id="dfp-tsb" class="everyonelovesstackoverflow everyoneloves__top-sidebar"></div>
<div class="js-report-ad-button-container " style="width: 300px"></div>
</div>
<div class="js-zone-container zone-container-sidebar">
<div id="dfp-msb" class="everyonelovesstackoverflow everyoneloves__mid-sidebar"></div>
<div class="js-report-ad-button-container " style="width: 300px"></div>
</div>
<div id="hireme"></div> <div class="module sidebar-linked">
<h4 id="h-linked">Linked</h4>
<div class="linked" data-tracker="lq=1">
<div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 35942754, target_question_id: 56818970, position: 0 })">
<a href="/q/56818970" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted default">0</div>
</a>
<a href="/questions/56818970/i-want-to-push-git-easily?noredirect=1" class="question-hyperlink">I want to push git easily</a>
</div>
<div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 35942754, target_question_id: 64898658, position: 1 })">
<a href="/q/64898658" title="Vote score (upvotes - downvotes)">
<div class="answer-votes default">0</div>
</a>
<a href="/questions/64898658/git-pull-from-a-python-script?noredirect=1" class="question-hyperlink">Git pull from a python script</a>
</div>
<div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 35942754, target_question_id: 61948919, position: 2 })">
<a href="/q/61948919" title="Vote score (upvotes - downvotes)">
<div class="answer-votes default">0</div>
</a>
<a href="/questions/61948919/git-prompting-for-username-and-password-for-every-git-command?noredirect=1" class="question-hyperlink">Git prompting for username and password for every git command</a>
</div>
<div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 35942754, target_question_id: 61116968, position: 3 })">
<a href="/q/61116968" title="Vote score (upvotes - downvotes)">
<div class="answer-votes default">0</div>
</a>
<a href="/questions/61116968/how-to-push-to-a-github-wiki-repo-using-ssh?noredirect=1" class="question-hyperlink">How to push to a github Wiki repo using ssh?</a>
</div>
<div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 35942754, target_question_id: 5343068, position: 4 })">
<a href="/q/5343068" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted extra-large">1957</div>
</a>
<a href="/questions/5343068/is-there-a-way-to-cache-https-credentials-for-pushing-commits?noredirect=1" class="question-hyperlink">Is there a way to cache https credentials for pushing commits?</a>
</div>
<div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 35942754, target_question_id: 6565357, position: 5 })">
<a href="/q/6565357" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted extra-large">1600</div>
</a>
<a href="/questions/6565357/git-push-requires-username-and-password?noredirect=1" class="question-hyperlink">Git push requires username and password</a>
</div>
<div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 35942754, target_question_id: 11403407, position: 6 })">
<a href="/q/11403407" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted large">765</div>
</a>
<a href="/questions/11403407/git-asks-for-username-every-time-i-push?noredirect=1" class="question-hyperlink">Git asks for username every time I push</a>
</div>
<div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 35942754, target_question_id: 12254076, position: 7 })">
<a href="/q/12254076" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted extra-large">1243</div>
</a>
<a href="/questions/12254076/how-do-i-show-my-global-git-configuration?noredirect=1" class="question-hyperlink">How do I show my global Git configuration?</a>
</div>
<div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 35942754, target_question_id: 11693074, position: 8 })">
<a href="/q/11693074" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted large">292</div>
</a>
<a href="/questions/11693074/git-credential-cache-is-not-a-git-command?noredirect=1" class="question-hyperlink">git: &#39;credential-cache&#39; is not a git command</a>
</div>
<div class="spacer js-gps-track" data-gps-track="linkedquestion.click({ source_post_id: 35942754, target_question_id: 14762034, position: 9 })">
<a href="/q/14762034" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted large">265</div>
</a>
<a href="/questions/14762034/push-to-github-without-a-password-using-ssh-key?noredirect=1" class="question-hyperlink">Push to GitHub without a password using ssh-key</a>
</div>
<div class="spacer more ml32 pl16 pt8">
<a href="/questions/linked/35942754">See more linked questions</a>
</div>
</div>
</div>
<div class="module sidebar-related">
<h4 id="h-related">Related</h4>
<div class="related js-gps-related-questions" data-tracker="rq=1">
<div class="spacer">
<a href="/q/292357" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted extra-large">12559</div>
</a>
<a href="/questions/292357/what-is-the-difference-between-git-pull-and-git-fetch" class="question-hyperlink">What is the difference between &#39;git pull&#39; and &#39;git fetch&#39;?</a>
</div>
<div class="spacer">
<a href="/q/348170" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted extra-large">9800</div>
</a>
<a href="/questions/348170/how-do-i-undo-git-add-before-commit" class="question-hyperlink">How do I undo &#39;git add&#39; before commit?</a>
</div>
<div class="spacer">
<a href="/q/927358" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted extra-large">22715</div>
</a>
<a href="/questions/927358/how-do-i-undo-the-most-recent-local-commits-in-git" class="question-hyperlink">How do I undo the most recent local commits in Git?</a>
</div>
<div class="spacer">
<a href="/q/1125968" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted extra-large">8030</div>
</a>
<a href="/questions/1125968/how-do-i-force-git-pull-to-overwrite-local-files" class="question-hyperlink">How do I force &ldquo;git pull&rdquo; to overwrite local files?</a>
</div>
<div class="spacer">
<a href="/q/1519006" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted extra-large">3353</div>
</a>
<a href="/questions/1519006/how-do-you-create-a-remote-git-branch" class="question-hyperlink">How do you create a remote Git branch?</a>
</div>
<div class="spacer">
<a href="/q/1783405" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted extra-large">7313</div>
</a>
<a href="/questions/1783405/how-do-i-check-out-a-remote-git-branch" class="question-hyperlink">How do I check out a remote Git branch?</a>
</div>
<div class="spacer">
<a href="/q/2003505" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted extra-large">18012</div>
</a>
<a href="/questions/2003505/how-do-i-delete-a-git-branch-locally-and-remotely" class="question-hyperlink">How do I delete a Git branch locally and remotely?</a>
</div>
<div class="spacer">
<a href="/q/2765421" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted extra-large">4770</div>
</a>
<a href="/questions/2765421/how-do-i-push-a-new-local-branch-to-a-remote-git-repository-and-track-it-too" class="question-hyperlink">How do I push a new local branch to a remote Git repository and track it too?</a>
</div>
<div class="spacer">
<a href="/q/6565357" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted extra-large">1600</div>
</a>
<a href="/questions/6565357/git-push-requires-username-and-password" class="question-hyperlink">Git push requires username and password</a>
</div>
<div class="spacer">
<a href="/q/6591213" title="Vote score (upvotes - downvotes)">
<div class="answer-votes answered-accepted extra-large">9352</div>
</a>
<a href="/questions/6591213/how-do-i-rename-a-local-git-branch" class="question-hyperlink">How do I rename a local Git branch?</a>
</div>
</div>
</div>
<div id="hot-network-questions" class="module tex2jax_ignore">
<h4>
<a href="https://stackexchange.com/questions?tab=hot"
class="js-gps-track s-link s-link__inherit"
data-gps-track="posts_hot_network.click({ item_type:1, location:11 })">
Hot Network Questions
</a>
</h4>
<ul>
<li >
<div class="favicon favicon-codereview" title="Code Review Stack Exchange"></div><a href="https://codereview.stackexchange.com/questions/262786/mean-difference-calculator-for-any-int-combination" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:196 }); posts_hot_network.click({ item_type:2, location:11 })">
Mean difference calculator for any int combination
</a>
</li>
<li >
<div class="favicon favicon-linguistics" title="Linguistics Stack Exchange"></div><a href="https://linguistics.stackexchange.com/questions/40205/why-were-writing-systems-invented-independently-during-roughly-the-same-period-a" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:312 }); posts_hot_network.click({ item_type:2, location:11 })">
Why were writing systems invented independently during roughly the same period across multiple civilizations?
</a>
</li>
<li >
<div class="favicon favicon-space" title="Space Exploration Stack Exchange"></div><a href="https://space.stackexchange.com/questions/53579/how-realistic-is-the-1-kg-km%c2%b2-solar-sail-in-deaths-end" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:508 }); posts_hot_network.click({ item_type:2, location:11 })">
How realistic is the 1 kg/km&#xB2; solar sail in &quot;Death&#x27;s End&quot;?
</a>
</li>
<li >
<div class="favicon favicon-philosophy" title="Philosophy Stack Exchange"></div><a href="https://philosophy.stackexchange.com/questions/82065/what-is-information" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:265 }); posts_hot_network.click({ item_type:2, location:11 })">
What is information?
</a>
</li>
<li >
<div class="favicon favicon-bitcoin" title="Bitcoin Stack Exchange"></div><a href="https://bitcoin.stackexchange.com/questions/106829/how-can-we-trust-in-2140-supply-wont-be-increased-by-just-a-few-lines-of-code" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:308 }); posts_hot_network.click({ item_type:2, location:11 })">
How can we trust in 2140 supply wont be increased by just a few lines of code?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-law" title="Law Stack Exchange"></div><a href="https://law.stackexchange.com/questions/66595/obtaining-source-code-from-an-uncooperative-company-when-youre-an-author" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:617 }); posts_hot_network.click({ item_type:2, location:11 })">
Obtaining source code from an uncooperative company when you&#x27;re an author
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-physics" title="Physics Stack Exchange"></div><a href="https://physics.stackexchange.com/questions/644051/nature-of-friction-while-walking-on-the-ground" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:151 }); posts_hot_network.click({ item_type:2, location:11 })">
Nature of friction while walking on the ground
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-tex" title="TeX - LaTeX Stack Exchange"></div><a href="https://tex.stackexchange.com/questions/600373/extract-summary-out-of-table-of-contents-toc" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:85 }); posts_hot_network.click({ item_type:2, location:11 })">
Extract summary out of table of contents (toc)
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-puzzling" title="Puzzling Stack Exchange"></div><a href="https://puzzling.stackexchange.com/questions/110389/a-brilliant-chemist-or-not" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:559 }); posts_hot_network.click({ item_type:2, location:11 })">
A brilliant Chemist-- or not
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-mathoverflow" title="MathOverflow"></div><a href="https://mathoverflow.net/questions/394745/why-does-elliptic-cohomology-fail-to-be-unique-up-to-contractible-choice" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:504 }); posts_hot_network.click({ item_type:2, location:11 })">
Why does elliptic cohomology fail to be unique up to contractible choice?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-latin" title="Latin Language Stack Exchange"></div><a href="https://latin.stackexchange.com/questions/16153/translating-a-forests-son-to-latin" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:644 }); posts_hot_network.click({ item_type:2, location:11 })">
Translating &quot;a forest&#x27;s son&quot; to Latin
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-ux" title="User Experience Stack Exchange"></div><a href="https://ux.stackexchange.com/questions/139964/mandatory-tabs-an-unusual-pattern" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:102 }); posts_hot_network.click({ item_type:2, location:11 })">
Mandatory tabs-an unusual pattern?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-codegolf" title="Code Golf Stack Exchange"></div><a href="https://codegolf.stackexchange.com/questions/229188/im-lazy-close-my-superparens" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:200 }); posts_hot_network.click({ item_type:2, location:11 })">
I&#x27;m Lazy: Close my Superparens
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-english" title="English Language &amp; Usage Stack Exchange"></div><a href="https://english.stackexchange.com/questions/568607/term-for-place-of-death" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:97 }); posts_hot_network.click({ item_type:2, location:11 })">
Term for &quot;place of death&quot;
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-electronics" title="Electrical Engineering Stack Exchange"></div><a href="https://electronics.stackexchange.com/questions/569932/why-are-most-cob-leds-physically-yellow" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:135 }); posts_hot_network.click({ item_type:2, location:11 })">
Why are most COB LEDs physically yellow?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-softwareengineering" title="Software Engineering Stack Exchange"></div><a href="https://softwareengineering.stackexchange.com/questions/429081/can-just-in-time-compilation-be-considered-a-secure-feature" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:131 }); posts_hot_network.click({ item_type:2, location:11 })">
Can Just-In-Time compilation be considered a secure feature?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-worldbuilding" title="Worldbuilding Stack Exchange"></div><a href="https://worldbuilding.stackexchange.com/questions/205136/could-we-evolve-to-become-mermaids" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:579 }); posts_hot_network.click({ item_type:2, location:11 })">
Could we evolve to become mermaids?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-workplace" title="The Workplace Stack Exchange"></div><a href="https://workplace.stackexchange.com/questions/173242/boss-offered-pay-raise-to-retain-me-im-about-to-resign-how-do-i-turn-down-the" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:423 }); posts_hot_network.click({ item_type:2, location:11 })">
Boss offered pay raise to retain me. I&#x27;m about to resign. How do I turn down the offer?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-academia" title="Academia Stack Exchange"></div><a href="https://academia.stackexchange.com/questions/169709/is-buying-lecture-notes-wrong" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:415 }); posts_hot_network.click({ item_type:2, location:11 })">
Is buying lecture notes wrong?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-politics" title="Politics Stack Exchange"></div><a href="https://politics.stackexchange.com/questions/65533/what-is-liberalism-in-the-usa-political-discourse" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:475 }); posts_hot_network.click({ item_type:2, location:11 })">
What is &quot;liberalism&quot; in the USA political discourse?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-puzzling" title="Puzzling Stack Exchange"></div><a href="https://puzzling.stackexchange.com/questions/110394/introducing-where-a-gchq-word-association-puzzle" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:559 }); posts_hot_network.click({ item_type:2, location:11 })">
Introducing &quot;Where?&quot; - a GCHQ word association puzzle
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-blender" title="Blender Stack Exchange"></div><a href="https://blender.stackexchange.com/questions/226925/how-to-apply-not-add-modifiers-to-multiple-meshes-at-the-same-time" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:502 }); posts_hot_network.click({ item_type:2, location:11 })">
How to apply (not add) modifiers to multiple meshes at the same time?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-ham" title="Amateur Radio Stack Exchange"></div><a href="https://ham.stackexchange.com/questions/18558/measurement-of-antenna-with-vna-does-not-match-its-specs" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:520 }); posts_hot_network.click({ item_type:2, location:11 })">
Measurement of antenna with VNA does not match its specs
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-codegolf" title="Code Golf Stack Exchange"></div><a href="https://codegolf.stackexchange.com/questions/229052/ihateoddnumbers" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:200 }); posts_hot_network.click({ item_type:2, location:11 })">
iHateOddNumbers
</a>
</li>
</ul>
<a href="#"
class="show-more js-show-more js-gps-track"
data-gps-track="posts_hot_network.click({ item_type:3, location:11 })">
more hot questions
</a>
</div>
<div id="feed-link" class="js-feed-link">
<a href="/feeds/question/35942754" title="Feed of this question and its answers">
<svg aria-hidden="true" class="fc-orange-400 svg-icon iconRss" width="18" height="18" viewBox="0 0 18 18"><path d="M1 3c0-1.1.9-2 2-2h12c1.09 0 2 .91 2 2v12c0 1.09-.91 2-2 2H3c-1.09 0-2-.91-2-2V3zm14.5 12C15.5 8.1 9.9 2.5 3 2.5V5a10 10 0 0110 10h2.5zm-5 0A7.5 7.5 0 003 7.5V10a5 5 0 015 5h2.5zm-5 0A2.5 2.5 0 003 12.5V15h2.5z"/></svg>
Question feed
</a>
</div>
<aside class="s-modal js-feed-link-modal" tabindex="-1" role="dialog" aria-labelledby="feed-modal-title" aria-describedby="feed-modal-description" aria-hidden="true">
<div class="s-modal--dialog js-modal-dialog wmx4" role="document" data-controller="se-draggable">
<h1 class="s-modal--header fw-bold js-first-tabbable" id="feed-modal-title" data-target="se-draggable.handle" tabindex="0">
Subscribe to RSS
</h1>
<div class="grid gs4 gsy fd-column">
<div class="grid--cell">
<label class="d-block s-label c-default" for="feed-url">
Question feed
<p class="s-description mt2" id="feed-modal-description">To subscribe to this RSS feed, copy and paste this URL into your RSS reader.</p>
</label>
</div>
<div class="grid ps-relative">
<input class="s-input" type="text" name="feed-url" id="feed-url" readonly="readonly" value="https://stackoverflow.com/feeds/question/35942754" />
<svg aria-hidden="true" class="s-input-icon fc-orange-400 svg-icon iconRss" width="18" height="18" viewBox="0 0 18 18"><path d="M1 3c0-1.1.9-2 2-2h12c1.09 0 2 .91 2 2v12c0 1.09-.91 2-2 2H3c-1.09 0-2-.91-2-2V3zm14.5 12C15.5 8.1 9.9 2.5 3 2.5V5a10 10 0 0110 10h2.5zm-5 0A7.5 7.5 0 003 7.5V10a5 5 0 015 5h2.5zm-5 0A2.5 2.5 0 003 12.5V15h2.5z"/></svg>
</div>
</div>
<a class="s-modal--close s-btn s-btn__muted js-modal-close js-last-tabbable" href="#" aria-label="Close">
<svg aria-hidden="true" class="svg-icon iconClearSm" width="14" height="14" viewBox="0 0 14 14"><path d="M12 3.41 10.59 2 7 5.59 3.41 2 2 3.41 5.59 7 2 10.59 3.41 12 7 8.41 10.59 12 12 10.59 8.41 7 12 3.41z"/></svg>
</a>
</div>
</aside>
</div>
</div>
<script>StackExchange.ready(function(){$.get('/posts/35942754/ivc/6dea');});</script>
<noscript><div><img src="/posts/35942754/ivc/6dea" class="dno" alt="" width="0" height="0"></div></noscript><div style="display:none" id="js-codeblock-lang"></div></div>
</div>
</div>
<script>;try{(function(a){function b(a){return'string'==typeof a?document.getElementById(a):a}function c(a){return a=b(a),!!a&&'none'===getComputedStyle(a).display}function d(a){return!c(a)}function e(a){return!!a}function f(a){return /^\s*$/.test(b(a).innerHTML)}function g(a){var b=a.style;b.height=b.maxHeight=b.minHeight='auto',b.display='none'}function h(a){var b=a.style;b.height=b.maxHeight=b.minHeight='auto',b.display='none',[].forEach.call(a.children,h)}function i(a){var b=a.style;b.height=b.maxHeight=b.minHeight='auto',b.removeProperty('display')}function j(a,b){var c;return function(){return a&&(c=a.call(b||this,arguments),a=null),c}}function k(a){var b=document.createElement('script');b.src=a,document.body.appendChild(b)}function l(a){return m([],a)}function m(a,b){return a.push=function(a){return b(),delete this.push,this.push(a)},a}function n(){try{return!new Function('return async()=>{};')}catch(a){return!0}}function o(){return'undefined'!=typeof googletag&&!!googletag.apiReady}function p(){o()||(googletag={cmd:l(B)})}function q(){var a=document.createElement('div');a.className='adsbox',a.id='clc-abd',a.style.position='absolute',a.style.pointerEvents='none',a.innerHTML='&nbsp;',document.body.appendChild(a)}function r(){return Object.keys(F.ids).filter(function(a){return'clc-cpa'!=a})}function s(a){var b=a.split('_')[0],c=F.ids[b],d=F.slots[c];'function'==typeof d&&(d=d(b));return{path:'/'+C+'/'+E+'/'+c+'/'+D,sizes:d,zone:c}}function t(a){try{Array.isArray(clc.dfp.slotsRenderedEvents)||(clc.dfp.slotsRenderedEvents=[]),clc.dfp.slotsRenderedEvents.push(a);var b=a.slot.getSlotElementId(),c=[];b||c.push('id=0');var d=document.getElementById(b);if(!b||d?d.hasAttribute('data-clc-stalled')&&c.push('st=1'):c.push('el=0'),0!==c.length)return void G(c.join('&'));var e=s(b),f=e.zone;if(clc.collapse&&clc.collapse[f]&&a.isEmpty)return h(d),void d.setAttribute('data-clc-ready','true');if(-1!==y.dh.indexOf(a.lineItemId))h(d);else if(a.lineItemId){d.setAttribute('data-clc-prefilled','true');var j=d.parentElement;if(j.classList.contains('js-zone-container')){g(j);var k=j.querySelectorAll('.js-report-ad-button-container'),l=k[0];switch(l.style.height='24px',b){case'dfp-tlb':case'dfp-tag':{j.classList.add('mb8');break}case'dfp-mlb':case'dfp-smlb':case'dfp-bmlb':{j.classList.add('my8');break}case'dfp-isb':{j.classList.add('mt24');break}case'dfp-m-aq':{j.classList.add('my12'),j.classList.add('mx-auto');break}default:}i(j),i(d)}else i(d);if('dfp-msb'==b){var m=document.getElementById('hireme');h(m)}}d.setAttribute('data-clc-ready','true')}catch(a){var n=document.querySelector('#dfp-tsb, #dfp-isb, #clc-tsb');n&&n.setAttribute('data-clc-ready','true'),G('e=1')}}function u(a,b){'dfp-isb'===a&&b.setTargeting('Sidebar',['Inline']),'dfp-tsb'===a&&b.setTargeting('Sidebar',['Right']);var c=s(a),d=c.path,e=c.sizes,f=c.zone,g=googletag.defineSlot(d,e,a);g.addService(b),!1;var h=a.split('_');if('clc-cpa'==h[0]&&h[1]){var i=h[1];g.setTargeting('talent-company-id',i)}}function v(b){var c=a.dfp&&a.dfp.targeting||{};'SystemDefault'===c.ProductVariant&&(window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches?c.ProductVariant='Dark':c.ProductVariant='Light'),Object.keys(c).forEach(function(a){b.setTargeting(a,c[a])})}function w(a){var g=a.map(b).filter(e);return{eligible:g.filter(f).filter(d),ineligible:g.filter(c)}}function x(b){void 0===b&&(b=r());var c=['dfp-mlb','dfp-smlb'];if(!o())return p(),void googletag.cmd.push(function(){return x(b)});var d=w(b),e=d.eligible,f=d.ineligible;if(e.forEach(function(a){g(a)}),f.forEach(h),0!==e.length){y.abd&&q();var i=googletag.pubads().getSlots(),j=i.filter(function(a){return 0<=b.indexOf(a.getSlotElementId())});googletag.destroySlots(j);var k=googletag.pubads();y.sf&&(k.setForceSafeFrame(!0),k.setSafeFrameConfig({allowOverlayExpansion:!0,allowPushExpansion:!0,sandbox:!0})),'undefined'!=typeof y.targeting_consent&&(k.setRequestNonPersonalizedAds(y.targeting_consent?0:1),!y.targeting_consent&&k.setPrivacySettings({limitedAds:!0})),y.ll||k.enableSingleRequest(),a.sreEvent||(k.addEventListener('slotRenderEnded',t),a.sreEvent=!0),v(k);var l=e.filter(function(a){return!y.ll||0>c.indexOf(a.id)}),m=e.filter(function(a){return!!y.ll&&0<=c.indexOf(a.id)});l.forEach(function(a){u(a.id,k),a.setAttribute('data-dfp-zone','true')}),googletag.enableServices(),l.forEach(function(a){googletag.display(a.id)}),y.ll&&(k.enableLazyLoad({fetchMarginPercent:0,renderMarginPercent:0}),m.forEach(function(a){u(a.id,k),a.setAttribute('data-clc-prefilled','true')}),m.forEach(function(a){googletag.display(a.id)}))}}var y=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];for(var d,e=0,f=b;e<f.length;e++)for(var g in d=f[e],d)a[g]=d[g];return a}({"lib":"https://cdn.sstatic.net/clc/clc.min.js?v=07743a815201","style":"https://cdn.sstatic.net/clc/styles/clc.min.css?v=7b9150d69300","u":"https://clc.stackoverflow.com/markup.js","wa":true,"kt":2000,"tto":true,"h":"clc.stackoverflow.com","allowed":"^(((talent\\.)?stackoverflow)|(blog\\.codinghorror)|(serverfault|askubuntu)|([^\\.]+\\.stackexchange))\\.com$","wv":true,"al":false,"dh":[5171832659],"abd":true},a.options||{}),z=j(function(){var a=y.lib;n()&&(a=a.replace(/(\.min)?\.js(\?v=[0-9a-fA-F]+)?$/,'.ie$1.js$2')),k(a)}),A=a.cmd||[];Array.isArray(A)&&(0<A.length?z():m(A,z));var B=j(function(){y.targeting_consent||'undefined'==typeof y.targeting_consent?k('https://securepubads.g.doubleclick.net/tag/js/gpt.js'):k('https://pagead2.googlesyndication.com/tag/js/gpt.js')}),C='248424177',D=/^\/tags\//.test(location.pathname)||/^\/questions\/tagged\//.test(location.pathname)?'tag-pages':/^\/$/.test(location.pathname)||/^\/home/.test(location.pathname)?'home-page':'question-pages',E=location.hostname;var F={slots:{lb:[[728,90]],mlb:[[728,90]],smlb:[[728,90]],bmlb:[[728,90]],sb:function(a){return'dfp-tsb'===a?[[300,250],[300,600]]:[[300,250]]},"tag-sponsorship":[[730,135]],"mobile-below-question":[[320,50],[300,250]],msb:[[300,250],[300,600]],"talent-conversion-tracking":[[1,1]]},ids:{"dfp-tlb":'lb',"dfp-mlb":'mlb',"dfp-smlb":'smlb',"dfp-bmlb":'bmlb',"dfp-tsb":'sb',"dfp-isb":'sb',"dfp-tag":'tag-sponsorship',"dfp-msb":'msb',"dfp-m-aq":'mobile-below-question',"clc-tlb":'lb',"clc-mlb":'mlb',"clc-tsb":'sb',"clc-cpa":'talent-conversion-tracking'}},G=function(a){new Image().src='https://'+y.h+'/stalled.gif?'+a};(function(){var b=y.al;b&&A.push(function(){return a.load()})})(),p(),a.dfp={load:x},a.options=y,a.cmd=A})(this.clc=this.clc||{})}catch(a){window.console.error(a)}</script><script>
var clc = clc || {};
clc.collapse = { sb: !0, 'tag-sponsorship': !0, lb: !0, mlb: !0, smlb: !0, bmlb: !0, 'mobile-below-question': !0 };
clc.options = clc.options || {};
clc.options.sf = !0;
clc.options.hb = !1;
clc.options.ll = !0;
clc.options.targeting_consent = !1;
clc.options.performance_consent = !1;
clc.cmd = clc.cmd || [];
clc.cmd.push(function () { window.clc_request='A_oGxuqLKtkIAAAAAGJxJAICAAAAAgAAAAAAKwAAAHxnaXR8Y3JlZGVudGlhbHN8Z2l0LWNvbmZpZ3xnaXQtZXh0ZW5zaW9uc3wAxXirqQ9xfKVzyA'; clc.load(); });
clc.dfp = clc.dfp || {};
clc.dfp.targeting = {Registered:['false'],'so-tag':['git','credentials','git-config','git-extensions'],'tag-reportable':['git','credentials','git-config','git-extensions'],'tag-non-reportable':['git','credentials','git-config','git-extensions'],Industry:['Tech'],CompanySize:['large'],Company:['Hyperoptic Ltd'],NumberOfAnswers:['20-plus']};
clc.dfp.targeting.TargetingConsent = ['false'];
const urlParams = new URLSearchParams(window.location.search);
if (urlParams.has('dfptestads')) {
const dfptestads = urlParams.get('dfptestads');
clc.dfp.targeting.DfpTestAds = dfptestads;
}
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
googletag.cmd.push(function () { clc.dfp.load(); });
StackExchange.ready(function () { googletag.cmd.push(function () { StackExchange.ads.init(googletag, '/ads/report-ad', 'Report this ad') }) });
</script>
<footer id="footer" class="site-footer js-footer" role="contentinfo">
<div class="site-footer--container">
<div class="site-footer--logo">
<a href="https://stackoverflow.com"><svg aria-hidden="true" class="native svg-icon iconLogoGlyphMd" width="32" height="37" viewBox="0 0 32 37"><path d="M26 33v-9h4v13H0V24h4v9h22z" fill="#BCBBBB"/><path d="m21.5 0-2.7 2 9.9 13.3 2.7-2L21.5 0zM26 18.4 13.3 7.8l2.1-2.5 12.7 10.6-2.1 2.5zM9.1 15.2l15 7 1.4-3-15-7-1.4 3zm14 10.79.68-2.95-16.1-3.35L7 23l16.1 2.99zM23 30H7v-3h16v3z" fill="#F48024"/></svg></a>
</div>
<nav class="site-footer--nav">
<div class="site-footer--col site-footer--col__visible js-footer-col" data-name="default">
<h5 class="-title"><a href="https://stackoverflow.com" class="js-gps-track" data-gps-track="footer.click({ location: 2, link: 15})">Stack Overflow</a></h5>
<ul class="-list js-primary-footer-links">
<li class="-item"><a href="/questions" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 16})">Questions</a></li>
<li class="-item"><a href="https://stackoverflow.com/jobs" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 17})">Jobs</a></li>
<li class="-item"><a href="https://stackoverflow.com/jobs/directory/developer-jobs" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 11})">Developer Jobs Directory</a></li>
<li class="-item"><a href="https://stackoverflow.com/jobs/salary" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 28})">Salary Calculator</a></li>
<li class="-item"><a href="/help" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 3 })">Help</a></li>
<li class="-item"><a onclick='StackExchange.switchMobile("on")' class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 12 })">Mobile</a></li>
</ul>
</div>
<div class="site-footer--col site-footer--col__visible js-footer-col" data-name="default">
<h5 class="-title"><a href="https://stackoverflowbusiness.com" class="js-gps-track" data-gps-track="footer.click({ location: 2, link: 19 })">Products</a></h5>
<ul class="-list">
<li class="-item"><a href="https://stackoverflow.com/teams" class="js-gps-track -link"
data-ga="[&quot;teams traffic&quot;,&quot;footer - site nav&quot;,&quot;stackoverflow.com/teams&quot;,null,{&quot;dimension4&quot;:&quot;teams&quot;}]"
data-gps-track="footer.click({ location: 2, link: 29 })">Teams</a></li>
<li class="-item"><a href="https://stackoverflow.com/talent" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 20 })">Talent</a></li>
<li class="-item"><a href="https://stackoverflow.com/advertising" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 21 })">Advertising</a></li>
<li class="-item"><a href="https://stackoverflow.com/enterprise" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 22 })">Enterprise</a></li>
</ul>
</div>
<div class="site-footer--col site-footer--col__visible js-footer-col" data-name="default">
<h5 class="-title"><a class="js-gps-track" data-gps-track="footer.click({ location: 2, link: 1 })" href="https://stackoverflow.com/company">Company</a></h5>
<ul class="-list">
<li class="-item"><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 1 })" href="https://stackoverflow.com/company">About</a></li>
<li class="-item"><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 27 })" href="https://stackoverflow.com/company/press">Press</a></li>
<li class="-item"><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 9 })" href="https://stackoverflow.com/company/work-here">Work Here</a></li>
<li class="-item"><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 7 })" href="https://stackoverflow.com/legal">Legal</a></li>
<li class="-item"><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 8 })" href="https://stackoverflow.com/legal/privacy-policy">Privacy Policy</a></li>
<li class="-item"><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 37 })" href="https://stackoverflow.com/legal/terms-of-service">Terms of Service</a></li>
<li class="-item"><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 13 })" href="https://stackoverflow.com/company/contact">Contact Us</a></li>
<li class="-item" id="consent-footer-link"><a class="js-gps-track -link js-cookie-settings" data-gps-track="footer.click({ location: 2, link: 38 })" href="#" data-consent-popup-loader="footer">Cookie Settings</a></li>
<li class="-item"><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 39 })" href="https://stackoverflow.com/legal/cookie-policy">Cookie Policy</a></li>
</ul>
</div>
<div class="site-footer--col site-footer--categories-nav site-footer--col__visible">
<a href="#" class="site-footer--back js-footer-back"><svg aria-hidden="true" class="svg-icon iconArrowLeftAlt" width="18" height="18" viewBox="0 0 18 18"><path d="M10.58 16 12 14.59 6.4 9 12 3.41 10.57 2l-7 7 7 7z"/></svg></a>
<div>
<h5 class="-title"><a href="https://stackexchange.com" data-gps-track="footer.click({ location: 2, link: 30 })">Stack Exchange<br> Network</a></h5>
<ul class="-list">
<li class="-item"><a href="#" class="-link _expandable js-footer-category-trigger js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })" data-target="Technology">Technology</a></li>
<li class="-item"><a href="#" class="-link _expandable js-footer-category-trigger js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })" data-target="Life / Arts">Life / Arts</a></li>
<li class="-item"><a href="#" class="-link _expandable js-footer-category-trigger js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })" data-target="Culture / Recreation">Culture / Recreation</a></li>
<li class="-item"><a href="#" class="-link _expandable js-footer-category-trigger js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })" data-target="Science">Science</a></li>
<li class="-item"><a href="#" class="-link _expandable js-footer-category-trigger js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })" data-target="Other">Other</a></li>
</ul>
</div>
</div>
<div class="site-footer--categories">
<div class="site-footer--col site-footer--category js-footer-col" data-name="Technology">
<ul class="-list">
<li class="-item"><a href="https://stackoverflow.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="professional and enthusiast programmers">Stack Overflow</a></li>
<li class="-item"><a href="https://serverfault.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="system and network administrators">Server Fault</a></li>
<li class="-item"><a href="https://superuser.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="computer enthusiasts and power users">Super User</a></li>
<li class="-item"><a href="https://webapps.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="power users of web applications">Web Applications</a></li>
<li class="-item"><a href="https://askubuntu.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="Ubuntu users and developers">Ask Ubuntu</a></li>
<li class="-item"><a href="https://webmasters.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="pro webmasters">Webmasters</a></li>
<li class="-item"><a href="https://gamedev.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="professional and independent game developers">Game Development</a></li>
</ul></div><div class="site-footer--col site-footer--category js-footer-col" data-name="Technology"><ul class="-list">
<li class="-item"><a href="https://tex.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="users of TeX, LaTeX, ConTeXt, and related typesetting systems">TeX - LaTeX</a></li>
<li class="-item"><a href="https://softwareengineering.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="professionals, academics, and students working within the systems development life cycle">Software Engineering</a></li>
<li class="-item"><a href="https://unix.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="users of Linux, FreeBSD and other Un*x-like operating systems">Unix &amp; Linux</a></li>
<li class="-item"><a href="https://apple.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="power users of Apple hardware and software">Ask Different (Apple)</a></li>
<li class="-item"><a href="https://wordpress.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="WordPress developers and administrators">WordPress Development</a></li>
<li class="-item"><a href="https://gis.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="cartographers, geographers and GIS professionals">Geographic Information Systems</a></li>
<li class="-item"><a href="https://electronics.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="electronics and electrical engineering professionals, students, and enthusiasts">Electrical Engineering</a></li>
</ul></div><div class="site-footer--col site-footer--category js-footer-col" data-name="Technology"><ul class="-list">
<li class="-item"><a href="https://android.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="enthusiasts and power users of the Android operating system">Android Enthusiasts</a></li>
<li class="-item"><a href="https://security.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="information security professionals">Information Security</a></li>
<li class="-item"><a href="https://dba.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="database professionals who wish to improve their database skills and learn from others in the community">Database Administrators</a></li>
<li class="-item"><a href="https://drupal.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="Drupal developers and administrators">Drupal Answers</a></li>
<li class="-item"><a href="https://sharepoint.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="SharePoint enthusiasts">SharePoint</a></li>
<li class="-item"><a href="https://ux.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="user experience researchers and experts">User Experience</a></li>
<li class="-item"><a href="https://mathematica.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="users of Wolfram Mathematica">Mathematica</a></li>
</ul></div><div class="site-footer--col site-footer--category js-footer-col" data-name="Technology"><ul class="-list">
<li class="-item"><a href="https://salesforce.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="Salesforce administrators, implementation experts, developers and anybody in-between">Salesforce</a></li>
<li class="-item"><a href="https://expressionengine.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="administrators, end users, developers and designers for ExpressionEngine&#xAE; CMS">ExpressionEngine&#xAE; Answers</a></li>
<li class="-item"><a href="https://pt.stackoverflow.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="programadores profissionais e entusiastas">Stack Overflow em Portugu&#xEA;s</a></li>
<li class="-item"><a href="https://blender.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="people who use Blender to create 3D graphics, animations, or games">Blender</a></li>
<li class="-item"><a href="https://networkengineering.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="network engineers">Network Engineering</a></li>
<li class="-item"><a href="https://crypto.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="software developers, mathematicians and others interested in cryptography">Cryptography</a></li>
<li class="-item"><a href="https://codereview.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="peer programmer code reviews">Code Review</a></li>
</ul></div><div class="site-footer--col site-footer--category js-footer-col" data-name="Technology"><ul class="-list">
<li class="-item"><a href="https://magento.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="users of the Magento e-Commerce platform">Magento</a></li>
<li class="-item"><a href="https://softwarerecs.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="people seeking specific software recommendations">Software Recommendations</a></li>
<li class="-item"><a href="https://dsp.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="practitioners of the art and science of signal, image and video processing">Signal Processing</a></li>
<li class="-item"><a href="https://emacs.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="those using, extending or developing Emacs">Emacs</a></li>
<li class="-item"><a href="https://raspberrypi.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="users and developers of hardware and software for Raspberry Pi">Raspberry Pi</a></li>
<li class="-item"><a href="https://ru.stackoverflow.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="&#x43F;&#x440;&#x43E;&#x433;&#x440;&#x430;&#x43C;&#x43C;&#x438;&#x441;&#x442;&#x43E;&#x432;">Stack Overflow &#x43D;&#x430; &#x440;&#x443;&#x441;&#x441;&#x43A;&#x43E;&#x43C;</a></li>
<li class="-item"><a href="https://codegolf.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="programming puzzle enthusiasts and code golfers">Code Golf</a></li>
</ul></div><div class="site-footer--col site-footer--category js-footer-col" data-name="Technology"><ul class="-list">
<li class="-item"><a href="https://es.stackoverflow.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="programadores y profesionales de la inform&#xE1;tica">Stack Overflow en espa&#xF1;ol</a></li>
<li class="-item"><a href="https://ethereum.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="users of Ethereum, the decentralized application platform and smart contract enabled blockchain">Ethereum</a></li>
<li class="-item"><a href="https://datascience.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="Data science professionals, Machine Learning specialists, and those interested in learning more about the field">Data Science</a></li>
<li class="-item"><a href="https://arduino.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="developers of open-source hardware and software that is compatible with Arduino">Arduino</a></li>
<li class="-item"><a href="https://bitcoin.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="Bitcoin crypto-currency enthusiasts">Bitcoin</a></li>
<li class="-item"><a href="https://sqa.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="software quality control experts, automation engineers, and software testers">Software Quality Assurance &amp; Testing</a></li>
<li class="-item"><a href="https://sound.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="sound engineers, producers, editors, and enthusiasts">Sound Design</a></li>
</ul></div><div class="site-footer--col site-footer--category js-footer-col" data-name="Technology"><ul class="-list">
<li class="-item"><a href="https://windowsphone.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="enthusiasts and power users of Windows Phone OS">Windows Phone</a></li>
<li class="-item">
<a href="https://stackexchange.com/sites#technology" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 26 })">
<strong>
more (29)
</strong>
</a>
</li>
</ul>
</div>
<div class="site-footer--col site-footer--category js-footer-col" data-name="Life / Arts">
<ul class="-list">
<li class="-item"><a href="https://photo.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="professional, enthusiast and amateur photographers">Photography</a></li>
<li class="-item"><a href="https://scifi.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="science fiction and fantasy enthusiasts">Science Fiction &amp; Fantasy</a></li>
<li class="-item"><a href="https://graphicdesign.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="Graphic Design professionals, students, and enthusiasts">Graphic Design</a></li>
<li class="-item"><a href="https://movies.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="movie and TV enthusiasts">Movies &amp; TV</a></li>
<li class="-item"><a href="https://music.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="musicians, students, and enthusiasts">Music: Practice &amp; Theory</a></li>
<li class="-item"><a href="https://worldbuilding.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="writers/artists using science, geography and culture to construct imaginary worlds and settings">Worldbuilding</a></li>
<li class="-item"><a href="https://video.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation">Video Production</a></li>
</ul></div><div class="site-footer--col site-footer--category js-footer-col" data-name="Life / Arts"><ul class="-list">
<li class="-item"><a href="https://cooking.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="professional and amateur chefs">Seasoned Advice (cooking)</a></li>
<li class="-item"><a href="https://diy.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="contractors and serious DIYers">Home Improvement</a></li>
<li class="-item"><a href="https://money.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="people who want to be financially literate">Personal Finance &amp; Money</a></li>
<li class="-item"><a href="https://academia.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="academics and those enrolled in higher education">Academia</a></li>
<li class="-item"><a href="https://law.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="legal professionals, students, and others with experience or interest in law">Law</a></li>
<li class="-item"><a href="https://fitness.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="physical fitness professionals, athletes, trainers, and those providing health-related needs">Physical Fitness</a></li>
<li class="-item"><a href="https://gardening.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="gardeners and landscapers">Gardening &amp; Landscaping</a></li>
</ul></div><div class="site-footer--col site-footer--category js-footer-col" data-name="Life / Arts"><ul class="-list">
<li class="-item"><a href="https://parenting.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="parents, grandparents, nannies and others with a parenting role">Parenting</a></li>
<li class="-item">
<a href="https://stackexchange.com/sites#lifearts" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 26 })">
<strong>
more (10)
</strong>
</a>
</li>
</ul>
</div>
<div class="site-footer--col site-footer--category js-footer-col" data-name="Culture / Recreation">
<ul class="-list">
<li class="-item"><a href="https://english.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="linguists, etymologists, and serious English language enthusiasts">English Language &amp; Usage</a></li>
<li class="-item"><a href="https://skeptics.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="scientific skepticism">Skeptics</a></li>
<li class="-item"><a href="https://judaism.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="those who base their lives on Jewish law and tradition and anyone interested in learning more">Mi Yodeya (Judaism)</a></li>
<li class="-item"><a href="https://travel.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="road warriors and seasoned travelers">Travel</a></li>
<li class="-item"><a href="https://christianity.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="committed Christians, experts in Christianity and those interested in learning more">Christianity</a></li>
<li class="-item"><a href="https://ell.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="speakers of other languages learning English">English Language Learners</a></li>
<li class="-item"><a href="https://japanese.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="students, teachers, and linguists wanting to discuss the finer points of the Japanese language">Japanese Language</a></li>
</ul></div><div class="site-footer--col site-footer--category js-footer-col" data-name="Culture / Recreation"><ul class="-list">
<li class="-item"><a href="https://chinese.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="students, teachers, and linguists wanting to discuss the finer points of the Chinese language">Chinese Language</a></li>
<li class="-item"><a href="https://french.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="students, teachers, and linguists wanting to discuss the finer points of the French language">French Language</a></li>
<li class="-item"><a href="https://german.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="speakers of German wanting to discuss the finer points of the language and translation">German Language</a></li>
<li class="-item"><a href="https://hermeneutics.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="professors, theologians, and those interested in exegetical analysis of biblical texts">Biblical Hermeneutics</a></li>
<li class="-item"><a href="https://history.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="historians and history buffs">History</a></li>
<li class="-item"><a href="https://spanish.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="linguists, teachers, students and Spanish language enthusiasts in general wanting to discuss the finer points of the language">Spanish Language</a></li>
<li class="-item"><a href="https://islam.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="Muslims, experts in Islam, and those interested in learning more about Islam">Islam</a></li>
</ul></div><div class="site-footer--col site-footer--category js-footer-col" data-name="Culture / Recreation"><ul class="-list">
<li class="-item"><a href="https://rus.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="&#x43B;&#x438;&#x43D;&#x433;&#x432;&#x438;&#x441;&#x442;&#x43E;&#x432; &#x438; &#x44D;&#x43D;&#x442;&#x443;&#x437;&#x438;&#x430;&#x441;&#x442;&#x43E;&#x432; &#x440;&#x443;&#x441;&#x441;&#x43A;&#x43E;&#x433;&#x43E; &#x44F;&#x437;&#x44B;&#x43A;&#x430;">&#x420;&#x443;&#x441;&#x441;&#x43A;&#x438;&#x439; &#x44F;&#x437;&#x44B;&#x43A;</a></li>
<li class="-item"><a href="https://russian.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="students, teachers, and linguists wanting to discuss the finer points of the Russian language">Russian Language</a></li>
<li class="-item"><a href="https://gaming.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="passionate videogamers on all platforms">Arqade (gaming)</a></li>
<li class="-item"><a href="https://bicycles.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="people who build and repair bicycles, people who train cycling, or commute on bicycles">Bicycles</a></li>
<li class="-item"><a href="https://rpg.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="gamemasters and players of tabletop, paper-and-pencil role-playing games">Role-playing Games</a></li>
<li class="-item"><a href="https://anime.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="anime and manga fans">Anime &amp; Manga</a></li>
<li class="-item"><a href="https://puzzling.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="those who create, solve, and study puzzles">Puzzling</a></li>
</ul></div><div class="site-footer--col site-footer--category js-footer-col" data-name="Culture / Recreation"><ul class="-list">
<li class="-item"><a href="https://mechanics.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="mechanics and DIY enthusiast owners of cars, trucks, and motorcycles">Motor Vehicle Maintenance &amp; Repair</a></li>
<li class="-item"><a href="https://boardgames.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="people who like playing board games, designing board games or modifying the rules of existing board games">Board &amp; Card Games</a></li>
<li class="-item"><a href="https://bricks.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="LEGO&#xAE; and building block enthusiasts">Bricks</a></li>
<li class="-item"><a href="https://homebrew.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="dedicated home brewers and serious enthusiasts">Homebrewing</a></li>
<li class="-item"><a href="https://martialarts.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="students and teachers of all martial arts">Martial Arts</a></li>
<li class="-item"><a href="https://outdoors.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="people who love being outdoors enjoying nature and wilderness, and learning about the required skills and equipment">The Great Outdoors</a></li>
<li class="-item"><a href="https://poker.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="serious players and enthusiasts of poker">Poker</a></li>
</ul></div><div class="site-footer--col site-footer--category js-footer-col" data-name="Culture / Recreation"><ul class="-list">
<li class="-item"><a href="https://chess.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="serious players and enthusiasts of chess">Chess</a></li>
<li class="-item"><a href="https://sports.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="participants in team and individual sport activities">Sports</a></li>
<li class="-item">
<a href="https://stackexchange.com/sites#culturerecreation" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 26 })">
<strong>
more (16)
</strong>
</a>
</li>
</ul>
</div>
<div class="site-footer--col site-footer--category js-footer-col" data-name="Science">
<ul class="-list">
<li class="-item"><a href="https://mathoverflow.net" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="professional mathematicians">MathOverflow</a></li>
<li class="-item"><a href="https://math.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="people studying math at any level and professionals in related fields">Mathematics</a></li>
<li class="-item"><a href="https://stats.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="people interested in statistics, machine learning, data analysis, data mining, and data visualization">Cross Validated (stats)</a></li>
<li class="-item"><a href="https://cstheory.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="theoretical computer scientists and researchers in related fields">Theoretical Computer Science</a></li>
<li class="-item"><a href="https://physics.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="active researchers, academics and students of physics">Physics</a></li>
<li class="-item"><a href="https://chemistry.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="scientists, academics, teachers, and students in the field of chemistry">Chemistry</a></li>
<li class="-item"><a href="https://biology.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="biology researchers, academics, and students">Biology</a></li>
</ul></div><div class="site-footer--col site-footer--category js-footer-col" data-name="Science"><ul class="-list">
<li class="-item"><a href="https://cs.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="students, researchers and practitioners of computer science">Computer Science</a></li>
<li class="-item"><a href="https://philosophy.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="those interested in the study of the fundamental nature of knowledge, reality, and existence">Philosophy</a></li>
<li class="-item"><a href="https://linguistics.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="professional linguists and others with an interest in linguistic research and theory">Linguistics</a></li>
<li class="-item"><a href="https://psychology.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry">Psychology &amp; Neuroscience</a></li>
<li class="-item"><a href="https://scicomp.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="scientists using computers to solve scientific problems">Computational Science</a></li>
<li class="-item">
<a href="https://stackexchange.com/sites#science" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 26 })">
<strong>
more (10)
</strong>
</a>
</li>
</ul>
</div>
<div class="site-footer--col site-footer--category js-footer-col" data-name="Other">
<ul class="-list">
<li class="-item"><a href="https://meta.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="meta-discussion of the Stack Exchange family of Q&amp;A websites">Meta Stack Exchange</a></li>
<li class="-item"><a href="https://stackapps.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="apps, scripts, and development with the Stack Exchange API">Stack Apps</a></li>
<li class="-item"><a href="https://api.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="programmatic interaction with Stack Exchange sites">API</a></li>
<li class="-item"><a href="https://data.stackexchange.com" class="-link js-gps-track" data-gps-track="footer.click({ location: 1, link: 25 })" title="querying Stack Exchange data using SQL">Data</a></li>
</ul>
</div>
</div>
</nav>
<div class="site-footer--copyright fs-fine">
<ul class="-list">
<li class="-item"><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link:4 })" href="https://stackoverflow.blog?blb=1">Blog</a></li>
<li class="-item"><a href="https://www.facebook.com/officialstackoverflow/" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 31 })">Facebook</a></li>
<li class="-item"><a href="https://twitter.com/stackoverflow" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 32 })">Twitter</a></li>
<li class="-item"><a href="https://linkedin.com/company/stack-overflow" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 33 })">LinkedIn</a></li>
<li class="-item"><a href="https://www.instagram.com/thestackoverflow" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 36 })">Instagram</a></li>
</ul>
<p class="mt-auto mb24">
site design / logo &#169; 2021 Stack Exchange Inc; user contributions licensed under <a href="https://stackoverflow.com/help/licensing">cc by-sa</a>. <span id="svnrev">rev&nbsp;2021.6.8.39453</span>
</p>
</div>
</div>
</footer>
<script>StackExchange.ready(function () { StackExchange.responsiveness.addSwitcher(); })</script>
<noscript>
<div id="noscript-warning">Stack Overflow works best with JavaScript enabled
<img src="https://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif" alt="" class="dno">
</div>
</noscript>
<script>
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function() { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m);
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
StackExchange.ready(function () {
StackExchange.ga.init({
autoLink: ["stackoverflow.blog","info.stackoverflowsolutions.com","stackoverflowsolutions.com"],
sendTitles: true,
tracker: window.ga,
trackingCodes: [
'UA-108242619-1'
],
checkDimension: 'dimension42'
});
StackExchange.ga.setDimension('dimension2', '|git|credentials|git-config|git-extensions|');
StackExchange.ga.setDimension('dimension3', 'Questions/Show');
StackExchange.ga.trackPageView();
});
</script>
<div class="ff-sans ps-fixed z-nav-fixed ws4 sm:w-auto p32 sm:p16 bg-black-750 fc-white bar-lg b16 l16 r16 js-consent-banner">
<svg aria-hidden="true" class="mln4 mb24 sm:d-none svg-spot spotCookieLg" style="color: var(--theme-button-filled-background-color)" width="96" height="96" viewBox="0 0 96 96">
<path d="M35 45.5a7.5 7.5 0 11-15 0 7.5 7.5 0 0115 0zM63.5 63a7.5 7.5 0 100-15 7.5 7.5 0 000 15zm-19 19a7.5 7.5 0 100-15 7.5 7.5 0 000 15z" opacity=".2"/>
<path d="M56.99 2.53a23.1 23.1 0 0114.66 6.15h.01l.01.02c.57.55.61 1.27.5 1.74v.07a10.95 10.95 0 01-3.07 4.77 9 9 0 01-6.9 2.5 10.34 10.34 0 01-9.72-10.44v-.08a10 10 0 011.03-3.74l.01-.03.02-.02c.28-.5.82-.92 1.52-.95.63-.02 1.27-.02 1.93.01zm12.04 7.83a20.1 20.1 0 00-12.2-4.83l-.92-.03c-.23.6-.38 1.25-.43 1.94a7.34 7.34 0 006.95 7.34 6 6 0 004.64-1.7c.94-.88 1.6-1.9 1.96-2.72zm15.3 8.76a6.84 6.84 0 00-5.09-.24 7.9 7.9 0 00-3.28 2.05 1.8 1.8 0 00-.3 1.95l.02.02v.02a15.16 15.16 0 008.74 7.47c.64.23 1.32.08 1.8-.33a6.63 6.63 0 001.63-1.97l.01-.03.01-.03c1.67-3.5-.12-7.32-3.54-8.91zm-5.5 3.28c.36-.25.82-.5 1.35-.67.92-.3 1.92-.35 2.89.1 2.14 1 2.92 3.14 2.11 4.88-.12.21-.26.41-.43.6l-.26-.1a12.29 12.29 0 01-5.66-4.81zM32 24a2 2 0 11-4 0 2 2 0 014 0zm12 21a2 2 0 11-4 0 2 2 0 014 0zm36 4a2 2 0 11-4 0 2 2 0 014 0zm-7 21a2 2 0 11-4 0 2 2 0 014 0zM59 81a2 2 0 11-4 0 2 2 0 014 0zM22 63a2 2 0 11-4 0 2 2 0 014 0zm27 7a9 9 0 11-18 0 9 9 0 0118 0zm-3 0a6 6 0 10-12 0 6 6 0 0012 0zM33 41a9 9 0 11-18 0 9 9 0 0118 0zm-15 0a6 6 0 1012 0 6 6 0 00-12 0zm50 11a9 9 0 11-18 0 9 9 0 0118 0zm-3 0a6 6 0 10-12 0 6 6 0 0012 0zM44.08 4.24c.31.48.33 1.09.05 1.58a17.46 17.46 0 00-2.36 8.8c0 9.55 7.58 17.24 16.85 17.24 2.97 0 5.75-.78 8.16-2.15a1.5 1.5 0 012.1.66 12.08 12.08 0 0011 6.74 12.4 12.4 0 007.85-2.75 1.5 1.5 0 012.38.74A45.76 45.76 0 0192 48.16c0 24.77-19.67 44.9-44 44.9S4 72.93 4 48.16C4 25.23 20.84 6.28 42.64 3.58a1.5 1.5 0 011.44.66zM40.22 7C21.32 10.71 7 27.7 7 48.16c0 23.17 18.39 41.9 41 41.9s41-18.73 41-41.9c0-3.52-.42-6.93-1.22-10.2a15.5 15.5 0 01-7.9 2.15c-5.5 0-10.36-2.83-12.97-7.1a19.46 19.46 0 01-8.28 1.85c-11 0-19.86-9.1-19.86-20.24 0-2.7.52-5.26 1.45-7.62zM92 91a2 2 0 100-4 2 2 0 000 4zM7 8.5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zM82.5 90a1.5 1.5 0 100-3 1.5 1.5 0 000 3zm9.5-7.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM13.5 8a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM80 14.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM53.5 20a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"/>
</svg>
<p class="fs-body2 fw-bold mb4">
Your privacy
</p>
<p class="mb16 s-anchors s-anchors__inherit s-anchors__underlined">
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our <a href="https://stackoverflow.com/legal/cookie-policy">Cookie Policy</a>.
</p>
<div class="grid gs8 ai-stretch fd-column sm:fd-row">
<button class="grid--cell s-btn s-btn__primary js-accept-cookies js-consent-banner-hide">
Accept all cookies
</button>
<button class="grid--cell s-btn s-btn__filled js-cookie-settings" data-consent-popup-loader="banner">
Customize settings
</button>
</div>
</div>
<div id="onetrust-consent-sdk" class="d-none"></div>
<div id="onetrust-banner-sdk" data-controller="s-modal"></div>
<div id="ot-pc-content" class="d-none"></div>
<div id="onetrust-style" class="d-none">&nbsp;</div>
<div class="d-none js-consent-banner-version" data-consent-banner-version="baseline"></div>
</body>
</html>