<?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; GIT</title>
	<atom:link href="http://www.pro-tekconsulting.com/blog/tag/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>GIT VS SVN</title>
		<link>http://www.pro-tekconsulting.com/blog/git-vs-svn/</link>
		<comments>http://www.pro-tekconsulting.com/blog/git-vs-svn/#comments</comments>
		<pubDate>Wed, 05 Oct 2016 03:52:13 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[GIT VS SVN]]></category>
		<category><![CDATA[GIT]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=1670</guid>
		<description><![CDATA[<p>GIT VS SVN There are many number of Subversion Vs Git comparisons around the web and most of them are based on myths rather than facts. In this article, we will explain you the major differences between these version control systems to help you to understand the actual state of affairs. Distributed Nature Git was [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/git-vs-svn/">GIT VS SVN</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>GIT VS SVN</h4>
<p>There are many number of Subversion Vs Git comparisons around the web and most of them are based on myths rather than facts. In this article, we will explain you the major differences between these version control systems to help you to understand the actual state of affairs.</p>
<p><img class="aligncenter size-full wp-image-1673" src="http://www.pro-tekconsulting.com/blog/wp-content/uploads/2016/10/git-vs-svn.png" alt="git vs svn" width="368" height="387" /></p>
<p><strong>Distributed Nature </strong></p>
<p>Git was designed from the ground up as a distributed version control system. Version control system means that multiple redundant repositories and branchings are the first class concepts of the tool.</p>
<p>In a distributed VCS like Git every user consists of a copy of the repository data stored locally, thereby it gives the user to access the file history and also allows full functionality when disconnected from the network.</p>
<p>In a centralized VCS like Subversion, only the central repository has the access to view the complete history. This means that user must communicate over the network with the central repository to obtain history about a file.</p>
<p><strong>Branch Handling </strong></p>
<p>Branches in Git are the core concept used on every day by every user. In Subversion they are more unmanageable and often used sparingly.</p>
<p>In Git, developers working directory is itself a branch. If two developers are modifying two different unrelated files at the same time, it is easy to view those directories as different branches stemming from the common base revision of the project.</p>
<p><strong>Speed of Operation </strong></p>
<p>Git is extremely fast. All the operations are local and there is no network latency involved for the following.</p>
<p>View file history<br />
Commit changes<br />
Merge branches<br />
Switch branches<br />
Switch branches</p>
<p><strong>Line Ending Conversion </strong></p>
<p>Subversion can be easily configured to automatically convert line endings for CRLF or LF, depending on the native line ending used by the clients operating system. Subversion also allows the users to specify line ending conversion on a file-by-file basis. If the user does not check the binary flag on adding binary content, then the content might get corrupted.</p>
<p><strong>Single Repository </strong></p>
<p>Subversion only supports a single repository. Only the user knows the repository URL and all the materials and the branches related to that project.</p>
<p>Since Git is distributed, not everything related to the project can be stored in the same location.</p>
<p><strong>Data Storage</strong></p>
<p>Every control system stores the metadata of files in hidden folders like.svn, .cvs and much more. Whereas, Git stores the entire content in the .git folder. If you are comparing the size of .git folder with .svn, you will notice a huge difference. The .git folder is the cloned repository on your machine, it has everything that the central repository has such as, tags, branches, and version histories.</p>
<p><strong>Access Control</strong></p>
<p>Subversion has a single central repository, it is possible to specify read and write access controls in a single location and can be executed across the entire project.</p>
<p><strong>Change Tracking </strong></p>
<p>In earlier versions of Git, there are only minor changes to binary files such as adjustment of brightness for images which is different because Git interprets them as a new file making the content history to split. The Subversion tracks file-by-file hence, history for changes is maintained.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/git-vs-svn/">GIT VS SVN</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/git-vs-svn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TOP 10 COMMANDS OF GIT</title>
		<link>http://www.pro-tekconsulting.com/blog/top-10-commands-of-git/</link>
		<comments>http://www.pro-tekconsulting.com/blog/top-10-commands-of-git/#comments</comments>
		<pubDate>Wed, 05 Oct 2016 02:39:52 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[commands of GIT]]></category>
		<category><![CDATA[GIT]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=1655</guid>
		<description><![CDATA[<p>Top 10 commands of GIT Are you new to GIT? Then you will recognize some things which work differently as compared to SVN or CVS based repositories. In this article, we will explain you the top 10 important GIT commands in a GIT workflow that you need to know about. Are you using Windows? Then [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/top-10-commands-of-git/">TOP 10 COMMANDS OF GIT</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Top 10 commands of GIT</h4>
<p>Are you new to GIT? Then you will recognize some things which work differently as compared to SVN or CVS based repositories. In this article, we will explain you the top 10 important GIT commands in a GIT workflow that you need to know about.</p>
<p>Are you using Windows? Then set-up Git on your local machine to follow the steps below.</p>
<p><strong>The GIT workflow as follows</strong></p>
<p>Go to the directory where you want to have the version control. Use git init to keep the directory under version control. This creates a new repository for the current location. The user can make changes to their files, and can use git add to stage files into the staging area. The user can also use git status and git diff to see what exactly the user has changed. When you want to upload the changes to a remote repository then you need to use git push.</p>
<p><img class="aligncenter wp-image-1658 size-full" src="http://www.pro-tekconsulting.com/blog/wp-content/uploads/2016/10/git.png" alt="git" width="468" height="436" /></p>
<p>When the user wants to download the changes from a remote repository to the local repository the user needs to use git fetch and git merge.</p>
<p><strong>1. Git auto complete: </strong></p>
<p>The auto complete feature can be enabled for git commands and it works in internal terminal.<br />
For implementing that, you need to edit the bash_profile file.<br />
sudo nano ~/.bash_profile<br />
and add the following lines.<br />
if [ -f ~/.git-completion.bash ]; then<br />
. ~/.git-completion.bash<br />
fi</p>
<p><strong>2. Track the file changes: </strong></p>
<p>In order to keep things in control and to know who is responsible when something goes wrong, it is always useful to see all the changes done to a particular file or files. A user can do this easily by using git blame command, which will show the author for every line in a file.</p>
<p>git blame my_filename</p>
<p><strong>3. Stash uncommitted changes:</strong></p>
<p>The stash command saves the user’s time in the situations where the user needs to show his applications to the client or someone from the management team. Since the user is in the middle of the work and the application would not work without reverting the changes. At that point, a user can run the stash command, which saves all the changes for further usage.</p>
<p>git stash</p>
<p>A user can showcase the work without losing any progress. When the user wants to see the list of stashes, then run:</p>
<p>git stash list<br />
To recover the uncommitted changes, execute the following command:<br />
git stash apply<br />
It is also possible to retrieve a particular stash only:<br />
git stash apply stash_unique_id</p>
<p><strong>4. Staging parts of a changed file for a commit:</strong></p>
<p>According to the best practices, while using version control, each commit should represent either a feature or a bug fix. However, team members or a user can add multiple features or can fix multiple bugs without committing. In such sought of situations, a user can stage files individually and commit them separately.</p>
<p>git commit -p myfilename</p>
<p><strong>5. Clone a specific remote branch:</strong></p>
<p>In some cases, the user doesn’t want to clone the entire remote repository, but only one of its branches. A user can perform that by running the following command.</p>
<p>git remote add -t Mybranchname -f</p>
<p><strong>6. Delete a remote branch: </strong></p>
<p>Deleting a remote branch is more confusing than deleting a local one. In newer versions of git, a user can use the following command.</p>
<p>git push origin &#8211;delete Mybranchname</p>
<p>However, in previous versions, user had to use push &#8220;nothing&#8221; to the branch in order to delete it.</p>
<p>git push origin :Mybranchname</p>
<p><strong>7.Merge current branch with a commit from the other branch: </strong></p>
<p>When the team is working in parallel with multiple branches, the change made in one branch has to be applied for the other branches. Using the cherry-pick command, a user can do it by merging a single commit from the other branch into the current branch, without changing other files or commits. So, the First switch to the branch that the user has to merge with the commit and then run the cherry-pick command.</p>
<p>git checkout Mybranchname</p>
<p>git cherry-pick commit_hash</p>
<p><strong>8. Pull with rebase instead of merge:</strong></p>
<p>When the team members are working on the same branch, the user has to pull the code and merge changes frequently. To avoid merge messages from cluttering up the log, use the rebase.</p>
<p>git pull &#8211;rebase</p>
<p>Also, user can configure a certain branch to always rebase:</p>
<p>git config branch.mybranchname.rebase true</p>
<p><strong>9. Use .gitignore and .gitkeep: </strong></p>
<p>In git, it is possible to exclude some files from version control. This is done by creating a file named .gitignore in the root of the project. After that, add the path to each file in a new line. The git automatically skips the empty folders by default. If the user wants to commit an empty folder, create a .gitkeep file and place it in the folder.</p>
<p><strong>10. Change the default message editor:</strong></p>
<p>In UNIX operating system, the default editor for commit message is VI. If the user wants to change it, the user can run the following command.</p>
<p>git config &#8211;global core.editor &#8220;path/to/my/editor&#8221;</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/top-10-commands-of-git/">TOP 10 COMMANDS OF GIT</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/top-10-commands-of-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
