<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techy Things &#187; git</title>
	<atom:link href="https://tech.yipp.ca/category/git/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech.yipp.ca</link>
	<description>Just another Yipp.ca Blogs site</description>
	<lastBuildDate>Thu, 01 May 2025 18:06:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>git diff with file pattern exclusion</title>
		<link>https://tech.yipp.ca/git/git-diff-file-pattern-exclusion/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=git-diff-file-pattern-exclusion</link>
		<comments>https://tech.yipp.ca/git/git-diff-file-pattern-exclusion/#comments</comments>
		<pubDate>Fri, 08 Sep 2023 18:58:10 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=4375</guid>
		<description><![CDATA[<p>git diff &#60;old-commit-hash&#62; &#60;new-commit-hash&#62; ':(exclude)*.mdx' &#62; diff.txt Example git diff 0022768e94766161a0c960e216e4afa26e34d66d 53b20cab480e20b4f6cad2e4795d36166eb6bf19 ':(exclude)*.mdx' &#62; diff.txt</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/git-diff-file-pattern-exclusion/">git diff with file pattern exclusion</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre>git diff &lt;old-commit-hash&gt; &lt;new-commit-hash&gt; ':(exclude)*.mdx' &gt; diff.txt</pre>
<h3>Example</h3>
<pre>git diff 0022768e94766161a0c960e216e4afa26e34d66d 53b20cab480e20b4f6cad2e4795d36166eb6bf19 ':(exclude)*.mdx' &gt; diff.txt</pre>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/git-diff-file-pattern-exclusion/">git diff with file pattern exclusion</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/git/git-diff-file-pattern-exclusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merging is not possible because you have unmerged files.</title>
		<link>https://tech.yipp.ca/git/merging-possible-unmerged-files/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=merging-possible-unmerged-files</link>
		<comments>https://tech.yipp.ca/git/merging-possible-unmerged-files/#comments</comments>
		<pubDate>Mon, 15 Mar 2021 16:17:09 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=3857</guid>
		<description><![CDATA[<p>error: Merging is not possible because you have unmerged files. hint: Fix them up in the work tree, and then use 'git add/rm ' hint: as appropriate to mark resolution and make a commit.&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/merging-possible-unmerged-files/">Merging is not possible because you have unmerged files.</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre>error: Merging is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm '
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.</pre>
<p>Thank you Linus Torvalds for these wonderful errors !</p>
<p>This can happen when you push a branch, do a pull request back to master using a web-based tool such as Stash or Github, then go back to your branch, do more commits and push, then do again a pull request and notice that the <strong>web-based tool is trying to merge back again all your changes</strong>, even the ones already merged.</p>
<p>So you merge master into your branch to actualize it then are hit with merge conflicts and if you try to go back to master you'll get this crap.</p>
<h2>Solution</h2>
<p>Don't do that. Don't continue editing your branch after it has merged with master. First sync up your branch with master after your PR has merged: `git pull origin master` so that your branch knows it has been merged in master. Then you can do new modifications in your branch and prepare a second PR.</p>
<p>Also to abort the merge (but keep your local changes):</p>
<pre>$ git merge --abort
</pre>
<p>If you decide to proceed with the merge, carefully inspect each file one by one and add them and commit them. But if it doesn't look right, just abort the merge like above, keep a copy of your changes, create a fresh checkout and new branch where you add your wanted changes and redo the PR.</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/merging-possible-unmerged-files/">Merging is not possible because you have unmerged files.</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/git/merging-possible-unmerged-files/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Pull is not possible because you have unmerged files.</title>
		<link>https://tech.yipp.ca/git/pull-possible-unmerged-files/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pull-possible-unmerged-files</link>
		<comments>https://tech.yipp.ca/git/pull-possible-unmerged-files/#comments</comments>
		<pubDate>Wed, 09 May 2018 16:50:15 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=3085</guid>
		<description><![CDATA[<p>Pull is not possible because you have unmerged files. Please, fix them up in the work tree, and then use 'git add/rm &#60;file&#62;' as appropriate to mark resolution, or use 'git commit -a'. Solution&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/pull-possible-unmerged-files/">Pull is not possible because you have unmerged files.</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Pull is not possible because you have unmerged files.<br />
Please, fix them up in the work tree, and then use 'git add/rm &lt;file&gt;'<br />
as appropriate to mark resolution, or use 'git commit -a'.</p>
<h2>Solution #1 - Resolve conflict</h2>
<p>If you want to go through with the merge, follow steps in the accepted answer at</p>
<p><a href="https://stackoverflow.com/questions/26376832/why-does-git-say-pull-is-not-possible-because-you-have-unmerged-files/27187110" target="_blank">https://stackoverflow.com/questions/26376832/why-does-git-say-pull-is-not-possible-because-you-have-unmerged-files/27187110</a></p>
<p>&nbsp;</p>
<h2>Solution #2 - Start fresh</h2>
<p>1. Make a backup copy of your changes, this <span style="color: #ff6600;"><strong>will erase all</strong></span> of your unsaved modifications.</p>
<p>2. Revert to the head of origin</p>
<pre>git reset --hard origin/&lt;mybranchname&gt;
git pull origin &lt;mybranchname&gt;
git submodule update --init --recursive</pre>
<p>3. Then manually put back your changes from your backup copy. Sometimes it is quicker like this, especially if a lot of time has passed since you last synched and your changes were localized.</p>
<p>&nbsp;</p>
<p>If you know a third and better way please do comment below.</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/pull-possible-unmerged-files/">Pull is not possible because you have unmerged files.</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/git/pull-possible-unmerged-files/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CONFLICT (submodule): Merge conflict in &#039;xyz&#039;</title>
		<link>https://tech.yipp.ca/git/conflict-submodule-merge-conflict/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=conflict-submodule-merge-conflict</link>
		<comments>https://tech.yipp.ca/git/conflict-submodule-merge-conflict/#comments</comments>
		<pubDate>Thu, 23 Nov 2017 16:30:08 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2917</guid>
		<description><![CDATA[<p>CONFLICT (submodule): Merge conflict in orthrus/external [dev@baobab vf]$ git checkout -b KRAK-1541-cleanup vfcore/orthrus/external: needs merge vfcore/vfcommonlib: needs merge error: you need to resolve your current index first [dev@baobab vf]$ git status # On branch&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/conflict-submodule-merge-conflict/">CONFLICT (submodule): Merge conflict in 'xyz'</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h3>CONFLICT (submodule): Merge conflict in orthrus/external</h3>
<pre>[dev@baobab vf]$ git checkout -b KRAK-1541-cleanup
vfcore/orthrus/external: needs merge
vfcore/vfcommonlib: needs merge
<span style="color: #ff0000;">error: you need to resolve your current index first</span></pre>
<pre>[dev@baobab vf]$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 98 commits.
#
# Unmerged paths:
# (use "git reset HEAD &lt;file&gt;..." to unstage)
# (use "git add/rm &lt;file&gt;..." as appropriate to mark resolution)
#
# both modified: orthrus/external
#</pre>
<h2>Bad Solution</h2>
<p>With git reset HEAD &lt;submodule-path&gt; it resolves the conflict and then creating a new branch passes.</p>
<pre>[dev@baobab vf]$ git reset HEAD orthrus/external
[dev@baobab vf]$ git checkout -b KRAK-1541-cleanup
M orthrus/external
<span style="color: #008000;"><span style="color: #000000;">Switched to a new branch 'KRAK-1541-cleanup'

This leaves some modifications in the submodule and is not a suitable solution.</span>

</span></pre>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/conflict-submodule-merge-conflict/">CONFLICT (submodule): Merge conflict in 'xyz'</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/git/conflict-submodule-merge-conflict/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git purge local branches that were deleted on remote</title>
		<link>https://tech.yipp.ca/git/git-purge-local-branches-deleted-remote/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=git-purge-local-branches-deleted-remote</link>
		<comments>https://tech.yipp.ca/git/git-purge-local-branches-deleted-remote/#comments</comments>
		<pubDate>Wed, 15 Mar 2017 16:25:20 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2767</guid>
		<description><![CDATA[<p>$> git remote prune origin This will cleanup local branches. You may also want to cleanup and compact your repo WARNING: This may temporarily use twice as disk space so do not use if&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/git-purge-local-branches-deleted-remote/">Git purge local branches that were deleted on remote</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><code>$> git remote prune origin</code></p>
<p>This will cleanup local branches.</p>
<p>You may also want to cleanup and compact your repo<br />
WARNING: This may temporarily use twice as disk space so do not use if you don't have enough free space</p>
<p><code>git reflog expire --all --expire=now<br />
git gc --prune=now --aggressive</code></p>
<p>If it fails due to missing disk space, it won't cleanup and will leave your disk 100% full. You then have to do<br />
<code><br />
rm -f .git/objects/*/tmp_*</code></p>
<p>If you set this up as an automated task, you might want to cleanup automatically on failure with something like</p>
<p><code>git gc || rm -f .git/objects/*/tmp_*<br />
</code><br />
Troubleshooting<br />
<code><br />
$> git gc --prune=now --aggressive<br />
Counting objects: 556318, done.<br />
Delta compression using up to 2 threads.<br />
Compressing objects: 100% (542764/542764), done.<br />
fatal: sha1 file '.git/objects/pack/tmp_pack_OBQCK7' write error: No space left on device<br />
error: failed to run repack</code></p>
<p>Solution</p>
<p><code>rm -f .git/objects/*/tmp_*</code></p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/git-purge-local-branches-deleted-remote/">Git purge local branches that were deleted on remote</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/git/git-purge-local-branches-deleted-remote/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git create patch with submodules</title>
		<link>https://tech.yipp.ca/git/git-create-patch-submodules/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=git-create-patch-submodules</link>
		<comments>https://tech.yipp.ca/git/git-create-patch-submodules/#comments</comments>
		<pubDate>Mon, 30 Jan 2017 16:15:07 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2733</guid>
		<description><![CDATA[<p>Method #1 &#160; Commit your changes but do not push yet git format-patch -n HEAD^ Then go in each submodule you care and do the sam Method #2 Submodules git submodule --quiet foreach --recursive&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/git-create-patch-submodules/">Git create patch with submodules</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2><code>Method #1</code></h2>
<p>&nbsp;</p>
<ul>
<li><code>Commit your changes but do not push yet</code></li>
<li><code>git format-patch -n HEAD^</code></li>
<li><code>Then go in each submodule you care and do the sam</code><code><br />
</code></li>
</ul>
<h2>Method #2</h2>
<p><code>Submodules git submodule --quiet foreach --recursive 'export NAME="${PWD##*/}"; git --no-pager diff --src-prefix="a/${NAME}/" --dst-prefix="b/${NAME}/"'</code></p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/git-create-patch-submodules/">Git create patch with submodules</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/git/git-create-patch-submodules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git merge two folders from unrelated branches with different path</title>
		<link>https://tech.yipp.ca/git/git-merge-two-folders-unrelated-branches-different-path/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=git-merge-two-folders-unrelated-branches-different-path</link>
		<comments>https://tech.yipp.ca/git/git-merge-two-folders-unrelated-branches-different-path/#comments</comments>
		<pubDate>Tue, 20 Sep 2016 16:43:29 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2623</guid>
		<description><![CDATA[<p>$&#62; git clone &#60;http://provider.com/coolrepo.git&#62; $&#62; cd coolrepo $&#62; git fetch &#60;http://provider.com/repowithvaluablechanges.git&#62; You can now use the SHA1 from the other repo with valuable changes even if they are unrelated! $&#62; git format-patch -k -1&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/git-merge-two-folders-unrelated-branches-different-path/">Git merge two folders from unrelated branches with different path</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre class="lang-bash prettyprint prettyprinted"><code><span class="pln">$&gt; git clone &lt;http://provider.com/coolrepo.git&gt;
$&gt; cd coolrepo
$&gt; git fetch</span></code><code><span class="pln"> &lt;http://provider.com/repowithvaluablechanges.git&gt;

</span></code><code><span class="pln">You can now use the SHA1 from the other repo with valuable changes even if they are unrelated!
</span></code><code><span class="pln">
$&gt; git </span><span class="pln">format</span><span class="pun">-</span><span class="pln">patch </span><span class="pun">-</span><span class="pln">k </span><span class="pun">-</span><span class="lit">1</span> <span class="pun">--</span><span class="pln">stdout </span><span class="pun">&lt;</span><span class="pln">commit SHA</span><span class="pun">&gt;</span> <span class="pun">|</span><span class="pln"> git am </span><span class="pun">-</span><span class="lit">3</span> <span class="pun">-</span><span class="pln">k

-3 for three-way patch
-1 for single commit alone

Example
[dev@centosmini vfcommon-lib]$ git format-patch -k -1 --stdout d6fd19c8e185e4adc0b817da4df02b7fde3df452 | git am -3 -k
Applying: Plug in the newly created HLS VFStream
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Renaming libqamplayer/vfcommon/vfstream.cpp =&gt; vfstream.cpp
Auto-merging vfstream.cpp
[dev@centosmini vfcommon-lib]$ git push origin HEAD
</span></code><code><span class="pln">
Alternative way if repos are already checked out in parrallel 

$&gt; git </span><span class="pun">--</span><span class="pln">git</span><span class="pun">-</span><span class="pln">dir</span><span class="pun">=../&lt;</span><span class="pln">some_other_repo</span><span class="pun">&gt;/.</span><span class="pln">git format</span><span class="pun">-</span><span class="pln">patch </span><span class="pun">-</span><span class="pln">k </span><span class="pun">-</span><span class="lit">1</span> <span class="pun">--</span><span class="pln">stdout </span><span class="pun">&lt;</span><span class="pln">commit SHA</span><span class="pun">&gt;</span> <span class="pun">|</span><span class="pln"> git am </span><span class="pun">-</span><span class="lit">3</span> <span class="pun">-</span><span class="pln">k

Problem

[dev@centosmini vfcommon-lib]$ git format-patch -k -1 --stdout 7e810e103495d95fc4be6450ba47c4857c35425d | git am -3 -k
previous rebase directory /home/dev/vfcommon-lib/.git/rebase-apply still exists but mbox given.
[dev@centosmini vfcommon-lib]$ git rebase --abort
It looks like git-am is in progress. Cannot rebase.

Solution

The reason behind this is that you most likely previously started a git am session and you resolved the conflict, committed and pushed, then restarted another git am session. Next time complete with something like "git am -3 --resolved"

For now you can try this :
$&gt; git am --abort

Problem
[dev@centosmini vfcommon-lib]$ git format-patch -k -1 --stdout f428822a53cb74d56a8f84f05e903cbf414bee5f | git am -3 -k
Applying: Fix clam key wait too long bug in unencrypted stream case and Increase clam client's send-keep-alive frequency, refs VF-8701
Using index info to reconstruct a base tree...
error: patch failed: libqamplayer/clam.cpp:184
error: libqamplayer/clam.cpp: patch does not apply
error: patch failed: libqamplayer/libav_bridge.cpp:341
error: libqamplayer/libav_bridge.cpp: patch does not apply
Did you hand edit your patch?
It does not apply to blobs recorded in its index.
Cannot fall back to three-way merge.
Patch failed at 0001 Fix clam key wait too long bug in unencrypted stream case and Increase clam client's send-keep-alive frequency, refs VF-8701
When you have resolved this problem run "git am -3 --resolved".
If you would prefer to skip this patch, instead run "git am -3 --skip".
To restore the original branch and stop patching run "git am -3 --abort".

Understanding
This is because this commit is tainted with unrelated files from other directories that don't exist in the local repo. The way I work around this is to separate it in two steps:

git format-patch -k -1 --stdout b1ccea87d95686a86a080a89e420917d751779b1 &gt; b1.diff
Then manually edit b1.diff to remove parts related to unwanted directories, then continue with
cat b1.diff | </span></code><code><span class="pln">git am -3 -k</span></code></pre>
<pre class="lang-bash prettyprint prettyprinted"></pre>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/git-merge-two-folders-unrelated-branches-different-path/">Git merge two folders from unrelated branches with different path</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/git/git-merge-two-folders-unrelated-branches-different-path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restore a deleted folder that was deleted and the commit pushed</title>
		<link>https://tech.yipp.ca/git/restore-deleted-folder-deleted-commit-pushed/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=restore-deleted-folder-deleted-commit-pushed</link>
		<comments>https://tech.yipp.ca/git/restore-deleted-folder-deleted-commit-pushed/#comments</comments>
		<pubDate>Wed, 20 Jul 2016 20:19:10 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2507</guid>
		<description><![CDATA[<p>1) Grab the commit hash where it got deleted 2) Type this command where "theFolderImissSoMuch" is the folder to restore. $&#62; git checkout 1d4b99fe3e312e4cb26b5e484d00cdcbc199e7cb^ -- theFolderImissSoMuch &#160;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/restore-deleted-folder-deleted-commit-pushed/">Restore a deleted folder that was deleted and the commit pushed</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>1) Grab the commit hash where it got deleted</p>
<p>2) Type this command where "theFolderImissSoMuch" is the folder to restore.</p>
<pre>$&gt; git checkout 1d4b99fe3e312e4cb26b5e484d00cdcbc199e7cb^ -- theFolderImissSoMuch</pre>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/restore-deleted-folder-deleted-commit-pushed/">Restore a deleted folder that was deleted and the commit pushed</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/git/restore-deleted-folder-deleted-commit-pushed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best way to duplicate a git repo on local PC</title>
		<link>https://tech.yipp.ca/git/best-way-duplicate-git-repo-local-pc/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=best-way-duplicate-git-repo-local-pc</link>
		<comments>https://tech.yipp.ca/git/best-way-duplicate-git-repo-local-pc/#comments</comments>
		<pubDate>Fri, 30 Jan 2015 17:43:59 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=1456</guid>
		<description><![CDATA[<p>Just copy the .git folder and then do checkout -- * $&#62; mkdir my-new-repo $&#62; cd my-new-repo $&#62; cp -R ../old-repo/.git ./ $&#62; git checkout -- *</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/best-way-duplicate-git-repo-local-pc/">Best way to duplicate a git repo on local PC</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><span style="font-size: 1.5em;">Just copy the .git folder and then do checkout -- *</span></p>
<pre>$&gt; mkdir my-new-repo
$&gt; cd my-new-repo
$&gt; cp -R ../old-repo/.git ./
$&gt; git checkout -- *</pre>
<pre></pre>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/best-way-duplicate-git-repo-local-pc/">Best way to duplicate a git repo on local PC</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/git/best-way-duplicate-git-repo-local-pc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>error: Error building trees while doing git commit</title>
		<link>https://tech.yipp.ca/git/error-error-building-trees-git-commit/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=error-error-building-trees-git-commit</link>
		<comments>https://tech.yipp.ca/git/error-error-building-trees-git-commit/#comments</comments>
		<pubDate>Tue, 20 Jan 2015 21:12:05 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=1403</guid>
		<description><![CDATA[<p>[dev@black vf-6.4]$ git commit -m "VF-8864 * copyright year to 2015" error: Error building trees Solution $&#62; git reset --mixed &#160;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/error-error-building-trees-git-commit/">error: Error building trees while doing git commit</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>[dev@black vf-6.4]$ git commit -m "VF-8864 * copyright year to 2015"<br />
<strong>error: Error building trees</strong></p>
<h2>Solution</h2>
<pre>$&gt; git reset --mixed</pre>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/git/error-error-building-trees-git-commit/">error: Error building trees while doing git commit</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/git/error-error-building-trees-git-commit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
