<?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>Pro-Tek Blog &#187; Force Git</title>
	<atom:link href="http://www.pro-tekconsulting.com/blog/tag/force-git/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pro-tekconsulting.com/blog</link>
	<description>For UI developers / UI designers and UI trends</description>
	<lastBuildDate>Thu, 05 Sep 2019 03:59:47 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.34</generator>
	<item>
		<title>How to Force Git to overwrite local files on pull?</title>
		<link>http://www.pro-tekconsulting.com/blog/how-to-force-git-to-overwrite-local-files-on-pull/</link>
		<comments>http://www.pro-tekconsulting.com/blog/how-to-force-git-to-overwrite-local-files-on-pull/#comments</comments>
		<pubDate>Wed, 06 May 2015 05:41:46 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Force Git]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=676</guid>
		<description><![CDATA[<p>How to Force Git to overwrite local files on pull? Let us consider a situation, We are creating a website with many features by two developers ‘A’ and ‘B’. And currently the template is being created by the dev ‘A’. The dev ‘A’ forgets to add the icons in source control, but puts them in [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-to-force-git-to-overwrite-local-files-on-pull/">How to Force Git to overwrite local files on pull?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>How to Force Git to overwrite local files on pull?</h4>
<p><strong>Let us consider a situation,</strong></p>
<ul>
<li>We are creating a website with many features by two developers ‘A’ and ‘B’. And currently the template is being</li>
<li>created by the dev ‘A’.</li>
<li>The dev ‘A’ forgets to add the icons in source control, but puts them in a directory.</li>
<li>Later on dev ‘B’ adds the icons under the source control and pushes them to Github.</li>
<li>But nowdev ‘A’ is unable to pull the files.</li>
<li>
<p style="text-align: justify;">So in such a situation, in order to update these files locally, dev’A’ would have to use the below commands,</p>
<p><strong>git fetch &#8212; all</strong></p>
<p style="text-align: justify;">This command will fetch remote changes from all branches to local repository and it does not affect the working directory.</p>
<p><strong>git reset &#8212; hard origin/master</strong></p>
<p style="text-align: justify;">This command will remove all uncommitted changes from your working directory.</p>
</li>
</ul>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/how-to-force-git-to-overwrite-local-files-on-pull/">How to Force Git to overwrite local files on pull?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/how-to-force-git-to-overwrite-local-files-on-pull/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
