|
@@ -0,0 +1,115 @@
|
|
|
|
+<!DOCTYPE html>
|
|
|
|
+<html lang="en-us">
|
|
|
|
+
|
|
|
|
+<head>
|
|
|
|
+ <title>
|
|
|
|
+Git | codeskraps
|
|
|
|
+</title>
|
|
|
|
+
|
|
|
|
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
|
|
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
+<meta name="description" content="Your website description">
|
|
|
|
+
|
|
|
|
+<meta name="generator" content="Hugo 0.134.3">
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+<link rel="canonical" href="https://codeskraps.com/tags/git/" >
|
|
|
|
+ <link href="https://codeskraps.com/tags/git/index.xml" rel="alternate" type="application/rss+xml" title="codeskraps" >
|
|
|
|
+ <link href="https://codeskraps.com/tags/git/index.xml" rel="feed" type="application/rss+xml" title="codeskraps" >
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+<link href="/css/style.min.ee0d47e4d4346c71a65a9e873108c81ffae54d60a2fc2338f6df394eb4b25a82.css" rel="stylesheet">
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+</head>
|
|
|
|
+
|
|
|
|
+<body>
|
|
|
|
+
|
|
|
|
+ <div class="flexWrapper">
|
|
|
|
+ <header class="headerWrapper">
|
|
|
|
+ <div class="header">
|
|
|
|
+ <div>
|
|
|
|
+ <a class="terminal" href="https://codeskraps.com/">
|
|
|
|
+ <span>me@codeskraps.com ~ $</span>
|
|
|
|
+ </a>
|
|
|
|
+ </div>
|
|
|
|
+ <input class="side-menu" type="checkbox" id="side-menu">
|
|
|
|
+ <label class="hamb" for="side-menu"><span class="hamb-line"></span></label>
|
|
|
|
+ <nav class="headerLinks">
|
|
|
|
+ <ul>
|
|
|
|
+
|
|
|
|
+ <li>
|
|
|
|
+ <a href="https://codeskraps.com/projects/" title="" >
|
|
|
|
+ ~/projects</a>
|
|
|
|
+ </li>
|
|
|
|
+
|
|
|
|
+ <li>
|
|
|
|
+ <a href="https://codeskraps.com/about/" title="" >
|
|
|
|
+ ~/about</a>
|
|
|
|
+ </li>
|
|
|
|
+
|
|
|
|
+ <li>
|
|
|
|
+ <a href="https://codeskraps.com/posts/" title="" >
|
|
|
|
+ ~/posts</a>
|
|
|
|
+ </li>
|
|
|
|
+
|
|
|
|
+ </ul>
|
|
|
|
+ </nav>
|
|
|
|
+ </div>
|
|
|
|
+</header>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <div class="content">
|
|
|
|
+ <main class="main">
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+<div>
|
|
|
|
+ <div class="listHeader">
|
|
|
|
+ <h1>Git</h1>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <a class="postListLink" href="https://codeskraps.com/posts/git_ssh_command/">
|
|
|
|
+
|
|
|
|
+ <div class="postListItem" role="listitem">
|
|
|
|
+ <div class="postHeader">
|
|
|
|
+ <span class="postTitle">Configuring SSH Keys for Individual Git Commands</span>
|
|
|
|
+
|
|
|
|
+ <time class="postDate" datetime="2024-10-02">October 2, 2024</time>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="postExcerpt">
|
|
|
|
+ <p><p>When working with Git repositories, you often need to authenticate using SSH keys. While you can configure SSH settings globally, there are times when you need to use a specific SSH key for just one command. This is particularly useful when cloning a new repository or adding a submodule, where there isn’t yet a local <code>.git/config</code> file to modify.</p>
|
|
|
|
+<h2 id="the-problem">The Problem</h2>
|
|
|
|
+<p>Imagine you’re working on a project that requires you to clone a repository using a specific SSH key. Normally, you might edit your SSH config file or the repository’s <code>.git/config</code> file. But what if you’re just getting started and don’t have these files set up yet?</p></p>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </a>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </main>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <footer class="footer">
|
|
|
|
+
|
|
|
|
+ <span>Built with <a href="https://gohugo.io" class="footerLink">Hugo</a> and <a href="https://github.com/LordMathis/hugo-theme-nightfall" class="footerLink">Nightfall</a> theme</span>
|
|
|
|
+
|
|
|
|
+</footer>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+</body>
|
|
|
|
+
|
|
|
|
+</html>
|