<?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 Arek's Blog</title><link>https://blog.kalandyk.xyz/tags/git/</link><description>Recent content in Git on Arek's Blog</description><generator>Hugo -- 0.147.8</generator><language>en-us</language><lastBuildDate>Sun, 01 Nov 2020 19:32:48 +0100</lastBuildDate><atom:link href="https://blog.kalandyk.xyz/tags/git/index.xml" rel="self" type="application/rss+xml"/><item><title>Mirror GitLab to GitHub</title><link>https://blog.kalandyk.xyz/posts/mirror-gitlab-to-github/</link><pubDate>Sun, 01 Nov 2020 19:32:48 +0100</pubDate><guid>https://blog.kalandyk.xyz/posts/mirror-gitlab-to-github/</guid><description>&lt;p>There are 2 kinds of mirroring in GitLab: pull (mirroring from another repo) and push (mirroring to another repo). Today I tried the second one!&lt;/p>
&lt;p>For mirroring you need an already created repository on GitLab of course. Then it&amp;rsquo;s needed to create another one on GitHub.&lt;/p>
&lt;p>When you have opened GitHub, you should also create PAT (Personal Access Token) by going into: &lt;strong>Settings -&amp;gt; Developer settings -&amp;gt; Personal access token -&amp;gt; Generate new token&lt;/strong>. Type into &lt;em>Note&lt;/em> some text (e.g. gitlab_repository_name) and select &lt;code>public_repo&lt;/code> (under &lt;code>repo&lt;/code>), then click Generate token and copy or leave open tab with shown token for later copy+paste (if you close tab, you won&amp;rsquo;t see the token again).&lt;/p></description></item><item><title>Dotfiles with Git</title><link>https://blog.kalandyk.xyz/posts/dotfiles-with-git/</link><pubDate>Tue, 27 Oct 2020 15:05:56 +0100</pubDate><guid>https://blog.kalandyk.xyz/posts/dotfiles-with-git/</guid><description>&lt;p>Having a backup version of config file is a nice thing to have when you screw something up. It allows you to experiment with adding new stuff to the file without ending a day with not working tool.&lt;/p>
&lt;p>You&amp;rsquo;ve probably seen people sharing their &lt;em>dotfiles&lt;/em> on Github accounts or r/unixporn at Reddit using git repos.
At least I&amp;rsquo;ve seen.&lt;/p>
&lt;p>So my first trial of backuping my config files was very trivial (but it did the job!). I just &lt;code>cp&lt;/code>ied i3wm config to created directory, initiated a new git repository and pushed that to the remote repo on Github. And you might think that&amp;rsquo;s not bad!&lt;/p></description></item></channel></rss>