CINXE.COM

The GitHub Insider

<!-- Archive Stuff --> <style> .signup { background-color: #d9f2fe; border-bottom: 1px solid #b8dbfc; color: #32383f; font-family: sans-serif; font-size: 1em; padding: 1.4rem 0; text-align: center; width: 100%; } .signup a { color: #0969da; text-decoration: underline; } .signup a:hover { color: black !important; text-decoration: none !important; } @media screen and (max-width:800px) { .signup a { display: block; margin-top: 1rem; } } </style> <div class="signup"> Get new issues of <em>The GitHub Insider</em> in your inbox. <a href="https://resources.github.com/newsletter?utm_medium=web&utm_source=github&utm_campaign=insider-archive-page">Sign up now &rarr;</a> </div> <!DOCTYPE html> <html lang="en" dir="ltr" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="format-detection" content="telephone=no, date=no, address=no, email=no"> <meta name="x-apple-disable-message-reformatting"> <meta name="color-scheme" content="light dark"> <meta name="supported-color-schemes" content="light dark"> <title>The GitHub Insider</title> <!--[if mso]> <xml> <o:OfficeDocumentSettings> <o:AllowPNG/> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml> <![endif]--> <style> /* General reset styles. */ body, table, td, a { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } table, td { mso-table-lspace: 0pt; mso-table-rspace: 0pt; } img { -ms-interpolation-mode: bicubic; } img { border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none; } table { border-collapse: collapse !important; } body { height: 100% !important; margin: 0 !important; padding: 0 !important; width: 100% !important; } a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; font-size: inherit !important; font-family: inherit !important; font-weight: inherit !important; line-height: inherit !important; } u+#body a { color: inherit; text-decoration: none; font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; } #MessageViewBody a { color: inherit; text-decoration: none; font-size: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; } u+.body .glist { margin-left: 0 !important; } @media only screen and (max-width: 640px) { u+.body .glist { margin-left: 40px !important; } } /* Set default link styles here. Override them on hover to show users they are interactive. */ a { color: #0969da; font-weight: normal; text-decoration: none; } a:hover { color: #0969da !important; text-decoration: underline !important; } a.button { text-align: center; } a.button:hover { background-color: #2c974b !important; border-color: #2c974b !important; color: #ffffff !important; text-decoration: none !important; } @media screen and (max-width: 600px) { a.button { display: block !important; } } </style> <!-- Set your dark mode styles below. --> <style> :root { color-scheme: light dark; supported-color-schemes: light dark; } @media (prefers-color-scheme: dark ) { body, .email-container, .content-container, .callout { background-color: #000000 !important; color: #ffffff !important; } h1, h2, h3, strong { color: #ffffff !important; } a { color: #ffffff !important; text-decoration: underline !important; } .footer a { color: #999999 !important; text-decoration: none !important; } a:hover { color: #ffffff !important; text-decoration: none !important; } .footer a:hover { text-decoration: underline !important; } a.button { color: #ffffff !important; text-decoration: none !important; } .dark-mode-hide { display: none !important; } .dark-mode-show { display: block !important; } .callout a.button { background-color: #2ea44f !important; border-color: #2ea44f !important; } .callout a.button:hover { background-color: #2c974b !important; border-color: #2c974b !important; color: #ffffff !important; text-decoration: none !important; } } </style> </head> <body id="body" class="body" style="background-color: #ffffff; margin: 0 !important; padding: 0 !important;"> <div style="display:none"> Git good, real good &#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp;&#847;&zwnj;&nbsp; </div> <!-- This is the main container div, where we set some accessibility basics. --> <div class="email-container" role="article" aria-roledescription="email" aria-label="" lang="en" dir="ltr" style="background-color: #ffffff; font-size: medium; font-size: max(16px, 1rem);"> <!--[if (gte mso 9)|(IE)]> <table cellspacing="0" cellpadding="0" border="0" width="600" align="center" role="presentation"><tr><td> <![endif]--> <div class="content-container" style="color: #000000; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; line-height: 1.5; margin: 1rem auto; max-width: 600px; padding: 1em;"> <a href="https://github.com?utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3" style="display: block; margin: 0 0 2em 0;"> <img alt="GitHub" src="https://images.github.media/EloquaImages/clients/GitHubInc/%7B06958555-b158-43f9-9f4c-f7cc10a305a0%7D_github-logo-email.png" width="100" border="0" style="display: block;" class="dark-mode-hide"> <!--[if !mso]><!--> <img alt="GitHub" src="https://images.github.media/EloquaImages/clients/GitHubInc/%7B369cff35-9244-420e-9a83-1a9040d9e311%7D_github-logo-email-dark-mode.png" width="100" border="0" style="display: none;" class="dark-mode-show"> <!--<![endif]--> </a> <!-- Header --> <p style="margin: 2em 0 2em 0;"> <a href="https://github.com?utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3"> <img alt="" src="https://images.github.media/EloquaImages/clients/GitHubInc/%7B0da1dee9-e914-4030-a21c-f4f02cc63994%7D_github-insider-header-2024.png" width="600" border="0" style="border-radius: 4px; color: #000000; font-size: 1.8em; line-height: 1.4; display: block; max-width: 100%; min-width: 100px; width: 100%;"> </a> </p> <p style="margin: 2em 0 2em 0;"> Have you ever wondered what in the world Git is and how to “git” good at it? (Sorry, I had to do it.) </p> <p style="margin: 2em 0 2em 0;"> In this edition of <em>The GitHub Insider</em>, we’re gonna “git” in the weeds, break down the basics, and toss some tips and tricks your way. Whether you’re a seasoned pro or new to coding, this newsletter will have something for you. So, let’s “git” down to business. (Okay, that was the last one, promise.) </p> <!-- IMG --> <p style="margin: 2em 0 0 0;"> <center> <img alt="" src="https://images.github.media/EloquaImages/clients/GitHubInc/%7Bcc0910b0-e5bb-455b-9901-8b34413bda32%7D_gh-insider-july-2024-1-1.jpg" width="600" border="0" style="border-radius: 4px; color: #000000; font-size: 1.8em; line-height: 1.4; display: block; max-width: 100%; min-width: 100px; width: 100%;"> </center> </p> <h2 style="color: #000000; font-size: 1.4em; font-weight: bold; line-height: 1.2; margin: 2em 0 0 0;"> Git 101 &#x1F913; </h2> <p style="margin: 2em 0 2em 0;"> Before we get to the tips and tricks, let’s quickly cover <a href="https://docs.github.com/en/get-started/start-your-journey/about-github-and-git?utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3" style="color: #0969da; font-weight: normal; text-decoration: none;">what Git is</a>. Git is the most widely used Version Control System (VCS) in the world—meaning it tracks the historical changes to files. </p> <p style="margin: 2em 0 2em 0;"> As legend goes, in the early 2000s, the Linux project used a commercial tool called BitKeeper for version control. However, a licensing dispute arose, and the free version for Linux developers was revoked. This spurred <a href="https://github.com/torvalds?utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3" style="color: #0969da; font-weight: normal; text-decoration: none;">Linus Torvalds</a>, the creator of Linux, to develop his own version control system: Git. Thus, Git was born out of necessity and a desire for an open-source alternative. </p> <p style="margin: 2em 0 2em 0;"> Git has lots of benefits for devs, including: </p> <p style="margin: 2em 0 2em 0;"> <ul> <li style="margin-bottom: 0.4em;"><strong>Version control:</strong> Git keeps track of all the changes you make to your codebase. By keeping track, you can easily revert to previous versions, compare changes over time, and understand the history of the project.</li> <li style="margin-bottom: 0.4em;"><strong>Collaboration:</strong> With Git, you can work with other developers on the same project simultaneously, manage changes, and integrate work in a seamless way.</li> <li style="margin-bottom: 0.4em;"><strong>Branching and merging:</strong> Branching in Git creates safe zones for developers to experiment without affecting the main project. It lets them work on separate features at the same time. Once they’re ready, developers can smoothly merge everything together.</li> <li style="margin-bottom: 0.4em;"><strong>Integration with other tools and practices:</strong> Git acts as the central storage for your code. Other practices, like Continuous Integration/Continuous Delivery (CI/CD) or project management software, can connect to Git and perform actions based on code changes, such as automatically testing or updating tasks.</li> <li style="margin-bottom: 0.4em;"><strong>Industry standard:</strong> With nearly 95% of developers using Git, it's the dominant choice. This means finding teammates or resources is much easier.</li> </ul> </p> <p style="margin: 2em 0 2em 0;"> Here are some valuable terms to know as you start using Git: </p> <!-- IMG --> <p style="margin: 2em 0 0 0;"> <center> <img alt="" src="https://images.github.media/EloquaImages/clients/GitHubInc/%7B25ef34cb-8d71-4c33-b74a-4db1fa8585f2%7D_gh-insider-july-2024-1-2.jpg" width="600" border="0" style="border-radius: 4px; color: #000000; font-size: 1.8em; line-height: 1.4; display: block; max-width: 100%; min-width: 100px; width: 100%;"> </center> </p> <p style="margin: 2em 0 2em 0;"> &#x1F4A1; Want some more info on Git and how to install it? Check out <a href="https://github.blog/2024-05-27-what-is-git-our-beginners-guide-to-version-control/?utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3" style="color: #0969da; font-weight: normal; text-decoration: none;">this blog post</a> (you won’t be disappointed). </p> <p style="margin: 2em 0 2em 0;"> Now, it’s time for those tips and tricks &#x1F440; </p> <h2 style="color: #000000; font-size: 1.4em; font-weight: bold; line-height: 1.2; margin: 2em 0 0 0;"> 1. Make sure you configure Git &#x1F9D1;&zwj;&#x1F4BB; </h2> <p style="margin: 2em 0 2em 0;"> Once you have Git installed, personalize it. Use <strong style="font-family: monospace;">git config</strong> to set your username and email. This lets Git understand who you are, and therefore can track your contributions properly. </p> <!-- IMG --> <p style="margin: 2em 0 0 0;"> <center> <img alt="" src="https://images.github.media/EloquaImages/clients/GitHubInc/%7B1739fb2a-612d-4059-9e82-f4baff78e0aa%7D_gh-insider-july-2024-1-3.jpg" width="600" border="0" style="border-radius: 4px; color: #000000; font-size: 1.8em; line-height: 1.4; display: block; max-width: 100%; min-width: 100px; width: 100%;"> </center> </p> <h2 style="color: #000000; font-size: 1.4em; font-weight: bold; line-height: 1.2; margin: 2em 0 0 0;"> 2. Create a new Git repository &#x2795; </h2> <p style="margin: 2em 0 2em 0;"> The <strong style="font-family: monospace;">git init</strong> command is used to initialize a new Git repository. Think of it as turning on a Git switch. Let’s say—for example—you create a new folder with the terminal command <strong style="font-family: monospace;">mkdir project1</strong>. You can go into <strong style="font-family: monospace;">project1</strong> by running <strong style="font-family: monospace;">cd project1</strong>. In its current state, <strong style="font-family: monospace;">project1</strong> is not a Git repository. If you want this folder to be a Git repository so you can track all the changes you make, type <strong style="font-family: monospace;">git init</strong> and run the command. Now that folder is a Git repository and will track all your changes. </p> <!-- IMG --> <p style="margin: 2em 0 0 0;"> <center> <img alt="" src="https://images.github.media/EloquaImages/clients/GitHubInc/%7B4431ddda-2b42-4bbc-95ed-b8af71b9d0c5%7D_gh-insider-july-2024-1-4.jpg" width="600" border="0" style="border-radius: 4px; color: #000000; font-size: 1.8em; line-height: 1.4; display: block; max-width: 100%; min-width: 100px; width: 100%;"> </center> </p> <h2 style="color: #000000; font-size: 1.4em; font-weight: bold; line-height: 1.2; margin: 2em 0 0 0;"> 3. Shortcut your workflow with Git aliases &#x1F3C3; </h2> <p style="margin: 2em 0 2em 0;"> Tired of those long-winded Git commands slowing you down? Git lets you create custom shortcuts called aliases. Imagine zipping to the master branch with a quick <strong style="font-family: monospace;">git co master</strong> instead of the entire command. Open your terminal and type: <strong style="font-family: monospace;">git config –global alias.co checkout</strong> and run it. Now, "co" acts as your alias for "checkout", meaning you can type <strong style="font-family: monospace;">co</strong>co instead of <strong style="font-family: monospace;">checkout</strong>." </p> <h2 style="color: #000000; font-size: 1.4em; font-weight: bold; line-height: 1.2; margin: 2em 0 0 0;"> 4. Master the branching basics &#x1F91D; </h2> <p style="margin: 2em 0 2em 0;"> You can create separate branches for new features, bug fixes, or experiments. This isolates your changes and lets you work on your new idea without breaking the main codebase. Only when a feature is complete and tested should you "merge" it back into the main branch. To see a list of the branches you have, you can type <strong style="font-family: monospace;">git branch</strong>. </p> <h2 style="color: #000000; font-size: 1.4em; font-weight: bold; line-height: 1.2; margin: 2em 0 0 0;"> 5. Get back to the main branch &larrhk;&#xFE0F; </h2> <p style="margin: 2em 0 2em 0;"> You can use the <strong style="font-family: monospace;">git switch</strong> command to navigate to your main branch anytime. In your terminal, type <strong style="font-family: monospace;">git switch main</strong> to return to the main branch. </p> <h2 style="color: #000000; font-size: 1.4em; font-weight: bold; line-height: 1.2; margin: 2em 0 0 0;"> 6. Embrace the power of commit messages &#x1F4E7; </h2> <p style="margin: 2em 0 2em 0;"> To “commit” a change means to store a version of your project in the Git history. Before committing, use the <strong style="font-family: monospace;">git add</strong> command to select which specific changes you want to include in the commit. Provide a clear and concise message describing the changes you made. This message is crucial for understanding the project's history and collaborating effectively with others. When you run <strong style="font-family: monospace;">git commit</strong>, Git takes the staged changes and your message, creates a new commit object, and stores it in your local Git repository. </p> <h2 style="color: #000000; font-size: 1.4em; font-weight: bold; line-height: 1.2; margin: 2em 0 0 0;"> 7. Push it real good!&#x1FAF8; </h2> <p style="margin: 2em 0 2em 0;"> The command <strong style="font-family: monospace;">git push</strong> tells Git, “Thanks for tracking these file changes. Now I want to upload these changes into the main project file.” When you push your changes, you are essentially updating the remote repository with commits that have been made in your local repository. </p> <p style="margin: 2em 0 2em 0;"> There’s also the <strong style="font-family: monospace;">git push --force</strong> command, which forcefully rewrites remote branch history with your local commits, potentially overwriting others' work. &amp;#x2757; This command should be used with extreme caution. &#x2757; For example, if you're working on a solo branch and accidentally push something sensitive, you can use <strong style="font-family: monospace;">git push --force</strong> to remove it after fixing your local commits. </p> <!-- IMG --> <p style="margin: 2em 0 0 0;"> <center> <img alt="" src="https://images.github.media/EloquaImages/clients/GitHubInc/%7Bed621e44-e510-4641-adb8-d71d204b36e3%7D_gh-insider-july-2024-1-5.jpg" width="600" border="0" style="border-radius: 4px; color: #000000; font-size: 1.8em; line-height: 1.4; display: block; max-width: 100%; min-width: 100px; width: 100%;"> </center> </p> <h2 style="color: #000000; font-size: 1.4em; font-weight: bold; line-height: 1.2; margin: 2em 0 0 0;"> 8. Copy projects to your local machine &#x1F46C; </h2> <p style="margin: 2em 0 2em 0;"> Need a copy of a remote project folder on your laptop? Git can help. Use the <strong style="font-family: monospace;">git clone</strong> command followed by the URL of the remote repository (like copying a link and pasting it). This creates a local copy, called a clone, that you can work on. </p> <!-- IMG --> <p style="margin: 2em 0 0 0;"> <center> <img alt="" src="https://images.github.media/EloquaImages/clients/GitHubInc/%7Bb1f32f82-31a1-43fd-a6e9-a4b0000cf9e6%7D_gh-insider-july-2024-1-6.jpg" width="600" border="0" style="border-radius: 4px; color: #000000; font-size: 1.8em; line-height: 1.4; display: block; max-width: 100%; min-width: 100px; width: 100%;"> </center> </p> <h2 style="color: #000000; font-size: 1.4em; font-weight: bold; line-height: 1.2; margin: 2em 0 0 0;"> 9. Autocorrection with Git &#x2328;&#xFE0F; </h2> <p style="margin: 2em 0 2em 0;"> We all make mistakes—and Git offers built-in autocorrection to help you with typos in commands. Imagine you want to switch to the <strong style="font-family: monospace;">main</strong> branch, but accidentally type <strong style="font-family: monospace;">git checkout master</strong>. Usually, Git will tell you this command doesn’t exist. With Autocorrect enabled, instead of suggesting an alternative subcommand, Git now just runs the top suggestion. Follow these steps to configure autocorrection: </p> <p style="margin: 2em 0 2em 0;"> Use the <strong style="font-family: monospace;">git config</strong> command with the following syntax: <strong style="font-family: monospace;">git config --global help.autocorrect &lt;value&gt;</strong></value> </p> <p style="margin: 2em 0 2em 0;"> Replace <strong style="font-family: monospace;">&lt;value&gt;</strong> with your desired behavior: </p> <p style="margin: 2em 0 2em 0;"> <ul> <li style="margin-bottom: 0.4em;"><strong>Integer (tenths of a second):</strong> Git waits this long before executing the autocorrected command. (e.g., 10 for 1 second delay)</li> <li style="margin-bottom: 0.4em;"><strong style="font-family: monospace;">never:</strong> Disables autocorrection entirely.</li> <li style="margin-bottom: 0.4em;"><strong style="font-family: monospace;">immediate:</strong> Executes the autocorrected command instantly (not recommended).</li> <li style="margin-bottom: 0.4em;"><strong style="font-family: monospace;">prompt:</strong> Asks for confirmation before autocorrecting.</li> </ul> </p> <p style="margin: 2em 0 2em 0;"> For a default delay with suggestions, use a value between 0 and 50 (eg, <strong style="font-family: monospace;">git config --global help.autocorrect 20</strong>). </p> <h2 style="color: #000000; font-size: 1.4em; font-weight: bold; line-height: 1.2; margin: 2em 0 0 0;"> 10. Navigating the commit history &#x1F50D; </h2> <p style="margin: 2em 0 2em 0;"> A clear commit history in Git is like a detailed map of your project's evolution. Use <strong style="font-family: monospace;">git log</strong> to view the commit history. You can customize the output with various options, such as <strong style="font-family: monospace;">--oneline</strong>, <strong style="font-family: monospace;">--graph</strong>, and <strong style="font-family: monospace;">--all</strong>. By combining these options, you can effectively navigate your project's history and pinpoint the exact changes you're interested in. </p> <!-- IMG --> <p style="margin: 2em 0 0 0;"> <center> <a href="https://www.youtube.com/watch?v=rE2zRhZdjFU&t=1s"> <img alt="" src="https://images.github.media/EloquaImages/clients/GitHubInc/%7B70dce0db-70c3-455a-9c9d-afd5f3b78bcb%7D_gh-insider-july-2024-1-7.jpg" width="600" border="0" style="border-radius: 4px; color: #000000; font-size: 1.8em; line-height: 1.4; display: block; max-width: 100%; min-width: 100px; width: 100%;"> </a> </center> </p> <h2 style="color: #000000; font-size: 1.4em; font-weight: bold; line-height: 1.2; margin: 2em 0 0 0;"> Master Git like a pro: bonus tips and resources </h2> <p style="margin: 2em 0 2em 0;"> Want to take your Git skills to the next level? We've got you covered. Watch <a href="https://www.youtube.com/watch?v=rE2zRhZdjFU&t=1s" style="color: #0969da; font-weight: normal; text-decoration: none;">this video</a> and transform into a Git power user. Or you can dive deep into this treasure trove of super helpful tricks in the <a href="https://github.com/git-tips/tips?utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3" style="color: #0969da; font-weight: normal; text-decoration: none;">git-tips repo</a>. Our <a href="https://learn.microsoft.com/en-us/collections/o1njfe825p602p?utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3" style="color: #0969da; font-weight: normal; text-decoration: none;">GitHub Foundations</a> course is also packed with everything you need to know about Git and the benefits of using GitHub as a collaborative platform. </p> <p style="margin: 2em 0 2em 0;"> And if you made it this far… </p> <p style="margin: 2em 0 2em 0;"> &#x1F389; Congratulations! &#x1F389; You've learned the basics of Git. Now, it's time to unleash its full potential with GitHub Actions! This powerful feature integrates seamlessly with Git by allowing you to define automated workflows directly within your Git repository. </p> <p style="margin: 2em 0 2em 0;"> Here’s a snapshot of what you can do with GitHub Actions: </p> <p style="margin: 2em 0 2em 0;"> <ul> <li style="margin-bottom: 0.4em;"><strong>Automate testing:</strong> Run unit tests, integration tests, and code linters automatically on every push or pull request so you can catch bugs early and ensure code quality.</li> <li style="margin-bottom: 0.4em;"><strong>CI/CD:</strong> Set up workflows that automatically build, test, and deploy your code whenever there's a change for faster delivery cycles and smoother deployments.</li> <li style="margin-bottom: 0.4em;"><strong>Collaborate with ease:</strong> Use actions to automate tasks such as sending pull request reminders, assigning tasks, or welcoming new contributors to your project.</li> <li style="margin-bottom: 0.4em;"><strong>Create custom Actions:</strong> The power doesn't stop there. You can even create your own custom actions to automate specific tasks unique to your project. Check out the range of <a href="https://github.com/marketplace?type=actions" style="color: #0969da; font-weight: normal; text-decoration: none;">custom Actions on the GitHub Marketplace</a>.</li> </ul> </p> <p style="margin: 2em 0 2em 0;"> Thanks for reading and being the best subscriber ever &#x2764;&#xFE0F;, and until next time, keep branching out those development skills. (Get it?) </p> <!-- A button block. --> <p style="margin: 4em 0 4em 0; text-align: center;"> <a class="button" href="https://github.com/features/actions?utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3" style="background: #2ea44f; border: 2px solid #2ea44f; text-decoration: none; padding: 10px 20px; color: #ffffff; border-radius: 4px; display: inline-block; font-weight: bold; mso-padding-alt: 0; text-underline-color: #2ea44f"><!--[if mso]><i style="letter-spacing: 20px;mso-font-width:-100%;mso-text-raise:30pt" hidden>&nbsp;</i><![endif]--><span style="mso-text-raise:15pt;">Get started with GitHub Actions</span><!--[if mso]><i style="letter-spacing: 25px;mso-font-width:-100%" hidden>&nbsp;</i><![endif]--> </a> </p> <hr style="border-width: 0; background: #eaeaea; color: #eaeaea; height: 1px"> <p style="margin: 2em 0 2em 0; text-align: center;"> <small>&#x2728; This newsletter was written by <a href="https://github.com/saraverdi/?utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3" style="color: #0969da; font-weight: normal; text-decoration: none;">Sara Verdi</a> and produced by <a href="https://github.com/purpledragon85/?utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3" style="color: #0969da; font-weight: normal; text-decoration: none;">Gwen Davis</a>. &#x2728;</small> </p> <!-- Connect with us section. --> <!-- Callout block --> <!--[if (gte mso 9)|(IE)]> <table cellspacing="0" cellpadding="0" border="0" width="100%" align="center" role="presentation"><tr><td style="background-color: #fff7c2;"> <![endif]--> <div style="background-color: #f5f7f9; border: 1px solid #dbdee2; border-radius: 4px; padding: 2em 2em 2em 2em; text-align: center;" class="callout"> <h3 style="font-size: 1.8em; font-weight: bold; margin: 0 0 0 0;"> More to explore &#x1F30E; </h3> </div> <!--[if (gte mso 9)|(IE)]> </td></tr></table> <![endif]--> <br><br> <!-- Callout block --> <!--[if (gte mso 9)|(IE)]> <table cellspacing="0" cellpadding="0" border="0" width="100%" align="center" role="presentation"><tr><td style="background-color: #fff7c2;"> <![endif]--> <div style="background-color: #fff7c2; border: 1px solid #ebd8b0; border-radius: 4px; padding: 2em 2em 2em 2em; text-align: center;" class="callout"> <h3 style="font-size: 1.2em; font-weight: bold; margin: 0 0 1em 0;"> Join our GitHub Actions conversations &#x1F4C4; </h3> <p style="margin: 1em 0 1em 0;"> Visit our community forum to see what people are saying + offer your own two cents. </p> <p style="margin: 2em 0 0 0;"> <a class="button" href="https://github.com/orgs/community/discussions/categories/actions?utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3" style="background: #000000; border: 2px solid #000000; text-decoration: none; padding: 10px 20px; color: #ffffff; border-radius: 4px; display: inline-block; font-weight: bold; mso-padding-alt: 0; text-underline-color: #000000"><!--[if mso]><i style="letter-spacing: 20px;mso-font-width:-100%;mso-text-raise:30pt" hidden>&nbsp;</i><![endif]--><span style="mso-text-raise:15pt;">Visit now</span><!--[if mso]><i style="letter-spacing: 25px;mso-font-width:-100%" hidden>&nbsp;</i><![endif]--> </a> </p> </div> <!--[if (gte mso 9)|(IE)]> </td></tr></table> <![endif]--> <br><br> <!-- Callout block --> <!--[if (gte mso 9)|(IE)]> <table cellspacing="0" cellpadding="0" border="0" width="100%" align="center" role="presentation"><tr><td style="background-color: #fff7c2;"> <![endif]--> <div style="background-color: #fbefff; border: 1px solid #ecd8ff; border-radius: 4px; padding: 2em 2em 2em 2em; text-align: center;" class="callout"> <h3 style="font-size: 1.2em; font-weight: bold; margin: 0 0 1em 0;"> Take our open source survey &#x1F4A1; </h3> <p style="margin: 1em 0 1em 0;"> We’re working with the Linux Foundation and researchers at Harvard University to learn more about how organizations fund open source projects. </p> <p style="margin: 2em 0 0 0;"> <a class="button" href="https://hbs.qualtrics.com/jfe/form/SV_eKVt69Ek3H2yYx8?Source=GitHub_Insider&utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3" style="background: #000000; border: 2px solid #000000; text-decoration: none; padding: 10px 20px; color: #ffffff; border-radius: 4px; display: inline-block; font-weight: bold; mso-padding-alt: 0; text-underline-color: #000000"><!--[if mso]><i style="letter-spacing: 20px;mso-font-width:-100%;mso-text-raise:30pt" hidden>&nbsp;</i><![endif]--><span style="mso-text-raise:15pt;">Take the survey now</span><!--[if mso]><i style="letter-spacing: 25px;mso-font-width:-100%" hidden>&nbsp;</i><![endif]--> </a> </p> </div> <!--[if (gte mso 9)|(IE)]> </td></tr></table> <![endif]--> <br><br> <!-- Callout block --> <!--[if (gte mso 9)|(IE)]> <table cellspacing="0" cellpadding="0" border="0" width="100%" align="center" role="presentation"><tr><td style="background-color: #d9f2fe;"> <![endif]--> <div style="background-color: #d9f2fe; border: 1px solid #b8dbfc; border-radius: 4px; padding: 2em 2em 2em 2em; text-align: center;" class="callout"> <h3 style="font-size: 1.2em; font-weight: bold; margin: 0 0 1em 0;"> Stay updated on GitHub products &#x1F4E6; </h3> <p style="margin: 1em 0 1em 0;"> Discover the latest ships, launches, and improvements in our Changelog. </p> <p style="margin: 2em 0 0 0;"> <a class="button" href="https://github.blog/changelog/?utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3" style="background: #000000; border: 2px solid #000000; text-decoration: none; padding: 10px 20px; color: #ffffff; border-radius: 4px; display: inline-block; font-weight: bold; mso-padding-alt: 0; text-underline-color: #000000"><!--[if mso]><i style="letter-spacing: 20px;mso-font-width:-100%;mso-text-raise:30pt" hidden>&nbsp;</i><![endif]--><span style="mso-text-raise:15pt;">Explore now</span><!--[if mso]><i style="letter-spacing: 25px;mso-font-width:-100%" hidden>&nbsp;</i><![endif]--> </a> </p> </div> <!--[if (gte mso 9)|(IE)]> </td></tr></table> <![endif]--> <br><br> <!-- Callout block --> <!--[if (gte mso 9)|(IE)]> <table cellspacing="0" cellpadding="0" border="0" width="100%" align="center" role="presentation"><tr><td style="background-color: #fff7c2;"> <![endif]--> <div style="background-color: #fff1e5; border: 1px solid #ffd8b5; border-radius: 4px; padding: 2em 2em 2em 2em; text-align: center;" class="callout"> <h3 style="font-size: 1.2em; font-weight: bold; margin: 0 0 1em 0;"> Connect with us at an event near you &#x1FAF1;&#x1F3FB;&#x200D;&#x1FAF2;&#x1F3FE; </h3> <p style="margin: 1em 0 1em 0;"> Are we in your neighborhood? Let’s meet up. </p> <p style="margin: 2em 0 0 0;"> <a class="button" href="https://github.com/events?utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3" style="background: #000000; border: 2px solid #000000; text-decoration: none; padding: 10px 20px; color: #ffffff; border-radius: 4px; display: inline-block; font-weight: bold; mso-padding-alt: 0; text-underline-color: #000000"><!--[if mso]><i style="letter-spacing: 20px;mso-font-width:-100%;mso-text-raise:30pt" hidden>&nbsp;</i><![endif]--><span style="mso-text-raise:15pt;">Find event</span><!--[if mso]><i style="letter-spacing: 25px;mso-font-width:-100%" hidden>&nbsp;</i><![endif]--> </a> </p> </div> <!--[if (gte mso 9)|(IE)]> </td></tr></table> <![endif]--> <br><br> <!-- Callout block --> <!--[if (gte mso 9)|(IE)]> <table cellspacing="0" cellpadding="0" border="0" width="100%" align="center" role="presentation"><tr><td style="background-color: #fff7c2;"> <![endif]--> <div style="background-color: #d6fadf; border: 1px solid #4ac26b66; border-radius: 4px; padding: 2em 2em 2em 2em; text-align: center;" class="callout"> <h3 style="font-size: 1.2em; font-weight: bold; margin: 0 0 1em 0;"> Subscribe to our LinkedIn newsletter &#x1F680; </h3> <p style="margin: 1em 0 1em 0;"> Do your best work on GitHub. Subscribe to our LinkedIn newsletter, <em>Branching Out_</em>. </p> <p style="margin: 2em 0 0 0;"> <a class="button" href="https://www.linkedin.com/newsletters/6958196028076429312/?utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3" style="background: #000000; border: 2px solid #000000; text-decoration: none; padding: 10px 20px; color: #ffffff; border-radius: 4px; display: inline-block; font-weight: bold; mso-padding-alt: 0; text-underline-color: #000000"><!--[if mso]><i style="letter-spacing: 20px;mso-font-width:-100%;mso-text-raise:30pt" hidden>&nbsp;</i><![endif]--><span style="mso-text-raise:15pt;">Sign up now</span><!--[if mso]><i style="letter-spacing: 25px;mso-font-width:-100%" hidden>&nbsp;</i><![endif]--> </a> </p> </div> <!--[if (gte mso 9)|(IE)]> </td></tr></table> <![endif]--> <br><br> <hr style="border-width: 0; background: #eaeaea; color: #eaeaea; height: 1px"> </div> <!--[if (gte mso 9)|(IE)]> </td></tr></table> <![endif]--> <!--[if (gte mso 9)|(IE)]> <table cellspacing="0" cellpadding="0" border="0" width="580" align="center" role="presentation"><tr><td> <![endif]--> <div class="content-container" style="color: #000000; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; line-height: 1.5; margin: 1rem auto; max-width: 580px; padding: 1em;"><!-- This is the footer. --> <center><a href="https://github.com?utm_source=insider&utm_medium=email&utm_campaign=2024q1-em-GitHub-Insider-July-3" style="display: block; margin: 0 0 2em 0;"><img alt="GitHub" border="0" class="dark-mode-hide" src="https://images.github.media/EloquaImages/clients/GitHubInc/%7B06958555-b158-43f9-9f4c-f7cc10a305a0%7D_github-logo-email.png" style="display: block;" width="100" /> <!--[if !mso]><!--> <img alt="GitHub" border="0" class="dark-mode-show" src="https://images.github.media/EloquaImages/clients/GitHubInc/%7B369cff35-9244-420e-9a83-1a9040d9e311%7D_github-logo-email-dark-mode.png" style="display: none;" width="100" /> <!--<![endif]--> </a></center> <p style="font-size: 1.2em; color: #999999; margin: 0 0 2em 0; text-align: center;">The world&rsquo;s leading AI-powered developer platform.</p> </div> <!--[if (gte mso 9)|(IE)]> </td></tr></table> <![endif]--> </div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10