<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Git on Nazım Can Altınova</title>
		<link>https://canaltinova.com/blog/tags/git/</link>
		<description>Recent content in Git on Nazım Can Altınova</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Fri, 28 Jun 2019 15:19:21 +0200</lastBuildDate>
		
			<atom:link href="https://canaltinova.com/blog/tags/git/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Dealing with multiple version control systems</title>
				<link>https://canaltinova.com/blog/posts/dealing-with-multiple-version-controls/</link>
				<pubDate>Fri, 28 Jun 2019 15:19:21 +0200</pubDate>
				<guid>https://canaltinova.com/blog/posts/dealing-with-multiple-version-controls/</guid>
				<description>&lt;p&gt;I love &lt;code&gt;git&lt;/code&gt; and I use it all the time. I use it for my personal projects, my dotfiles, my documents and even my home directory. But for work, I need to use &lt;code&gt;mercurial&lt;/code&gt; as well as &lt;code&gt;git&lt;/code&gt; (mercurial for the &lt;code&gt;mozilla-central&lt;/code&gt; mono-repo and git for other repositories, mostly hosted separately on GitHub). I like mercurial too. But there’s a problem: whenever I switch between those version control systems, I always forget which one I&amp;rsquo;m using right now. For example, when I switch from a git repo to a mercurial repo, I use the &lt;code&gt;git&lt;/code&gt; command instead of &lt;code&gt;hg&lt;/code&gt;. Then I change my command back and run the correct command after getting an error that says this is not a git repository&amp;hellip; That was driving me crazy for a while. Then I came up with a bash function that saves me from rewriting the whole command and acts like the version control system of that repository.&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt; It’s not perfect and doesn’t solve everything. But it solves most of my issues, so I wanted to write about it in case someone else needs it.&#xA;By the way, for background, I’m using the &lt;code&gt;g&lt;/code&gt; alias for the &lt;code&gt;git&lt;/code&gt; command and the &lt;code&gt;h&lt;/code&gt; alias for the &lt;code&gt;hg&lt;/code&gt; command.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
