<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Git on Wijnand Baretta</title><link>https://wijnandbaretta.com/tags/git/</link><description>Recent content in Git on Wijnand Baretta</description><image><title>Wijnand Baretta</title><url>https://wijnandbaretta.com/images/og-default.png</url><link>https://wijnandbaretta.com/images/og-default.png</link></image><generator>Hugo -- 0.152.2</generator><language>en</language><lastBuildDate>Tue, 31 Aug 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://wijnandbaretta.com/tags/git/index.xml" rel="self" type="application/rss+xml"/><item><title>Creating a new Git repository on Github and synching to it</title><link>https://wijnandbaretta.com/posts/creating-a-new-git-repository-on-github-and-synching-to-it/</link><pubDate>Tue, 31 Aug 2021 00:00:00 +0000</pubDate><guid>https://wijnandbaretta.com/posts/creating-a-new-git-repository-on-github-and-synching-to-it/</guid><description>&lt;p&gt;I want to create a new Git repo and write down the commands to add new content or create a script which does that for me.&lt;/p&gt;
&lt;p&gt;First, I go to the root directory of my (local) project and initiate a new Git repository:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ git init
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;We now have an empty git repository. Add all files to it with&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ git add .
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Setting up a repo on Github:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ gh repo create project-name
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I need to set the upstream branch on Github and get the .gitignore and the LICENSE that were created when setting up the repo on Github:
repository:&lt;/p&gt;</description></item><item><title>GIT: The Ultimate Guide for Beginners: Learn Git Version Control</title><link>https://wijnandbaretta.com/books/git-the-ultimate-guide-for-beginners-learn-git-version-control/</link><pubDate>Wed, 16 Sep 2015 00:00:00 +0000</pubDate><guid>https://wijnandbaretta.com/books/git-the-ultimate-guide-for-beginners-learn-git-version-control/</guid><description>&lt;h1 id="git-the-ultimate-guide-for-beginners-learn-git-version-control-by-jameson-garner"&gt;GIT: The Ultimate Guide for Beginners: Learn Git Version Control by Jameson Garner&lt;/h1&gt;
&lt;h2 id="summary"&gt;Summary&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;GIT: The Ultimate Guide for Beginners&lt;/em&gt; by Jameson Garner is a beginner-friendly introduction to Git, designed to help new users understand and effectively utilize version control. The book covers the basics of Git, including setup, creating repositories, and fundamental commands like commit, push, pull, and branch. Garner emphasizes a straightforward approach, with clear explanations and examples, making the content accessible even for those without prior experience in version control.&lt;/p&gt;</description></item><item><title>Git for Programmers: Master Git for effective implementation of version control for your programming projects</title><link>https://wijnandbaretta.com/books/git-for-programmers-master-git-for-effective-implementation-of-version-control-for-your-programming-projects/</link><pubDate>Thu, 02 Jul 2015 00:00:00 +0000</pubDate><guid>https://wijnandbaretta.com/books/git-for-programmers-master-git-for-effective-implementation-of-version-control-for-your-programming-projects/</guid><description>&lt;h1 id="git-for-programmers-master-git-for-effective-implementation-of-version-control-for-your-programming-projects-by-jessy-liberty"&gt;Git for Programmers: Master Git for Effective Implementation of Version Control for Your Programming Projects by Jessy Liberty&lt;/h1&gt;
&lt;h2 id="summary"&gt;Summary&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Git for Programmers&lt;/em&gt; by Jessy Liberty is a comprehensive guide to using Git for version control in programming projects. Aimed at developers looking to enhance their workflow, the book covers fundamental and advanced Git concepts, from setting up a repository and basic commit commands to branching strategies, merging conflicts, and advanced features like rebasing and cherry-picking. Liberty provides practical examples and step-by-step instructions, making Git accessible for beginners while offering insights for experienced developers to deepen their skills.&lt;/p&gt;</description></item></channel></rss>