<?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>source control Archives - Tech Chronicles</title>
	<atom:link href="http://kostacipo.stream/tag/source-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://kostacipo.stream/tag/source-control/</link>
	<description>Ramblings of a Tech Dude</description>
	<lastBuildDate>Mon, 25 Nov 2019 14:41:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>

<image>
	<url>https://kostacipo.stream/wp-content/uploads/2019/12/cropped-profile-32x32.jpg</url>
	<title>source control Archives - Tech Chronicles</title>
	<link>http://kostacipo.stream/tag/source-control/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>10 Useful Git Commands You Should Know</title>
		<link>http://kostacipo.stream/turn-your-commute-into-a-learning-experience/</link>
					<comments>http://kostacipo.stream/turn-your-commute-into-a-learning-experience/#respond</comments>
		
		<dc:creator><![CDATA[Majordomo]]></dc:creator>
		<pubDate>Wed, 23 Jan 2019 05:12:50 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[source control]]></category>
		<guid isPermaLink="false">https://demo.mekshq.com/johannes/dc/?p=103</guid>

					<description><![CDATA[<p>&#160; &#8230; and how to get started with open source development Git is a distributed version control system. It is used for keeping track of projects and files as developers change the code. Git stores information about the project’s progress in a repository. A repository has commits to the project or a set of references [&#8230;]</p>
<p>The post <a href="http://kostacipo.stream/turn-your-commute-into-a-learning-experience/">10 Useful Git Commands You Should Know</a> appeared first on <a href="http://kostacipo.stream">Tech Chronicles</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>&nbsp;</p>

<h4 class="aq ef gc gd av">&#8230; and how to get started with open source development</h4>
<section class="fd fe ff fg fh">
<div class="n p">
<div class="ac ae af ag ah fi aj ak">
<p id="96b4" class="ix iy cn ar iz b ja jb jc jd je jf jg jh ji jj jk" data-selectable-paragraph="">Git is a distributed version control system. It is used for keeping track of projects and files as developers change the code. Git stores information about the project’s progress in a repository. A repository has commits to the project or a set of references to the commits called heads.</p>
<p id="b901" class="ix iy cn ar iz b ja jb jc jd je jf jg jh ji jj jk" data-selectable-paragraph="">There are a ton of resources on the internet to learn Git from. But for a beginner, it might get intimidating to go through so much of information. So in this article I will briefly go through 10 important git commands to help you get started with git and github.</p>
<h1 id="f7dc" class="jl jm cn ar aq jn jo jp jq jr js jt ju jv jw jx jy" data-selectable-paragraph="">1. init</h1>
<h2 id="bd50" class="jz jm cn ar aq jn ka kb kc kd ke kf kg kh ki kj kk" data-selectable-paragraph="">To initialize a git repository for a new or existing project.</h2>
<p id="0a9c" class="ix iy cn ar iz b ja kl jc km je kn jg ko ji kp jk" data-selectable-paragraph="">The git init command is used for creating a new git repository. It can be used to convert an existing project to a git repository or initialize a new and empty repository.</p>
<pre class="ho hp hq hr hs kq kr du"><span id="2c9b" class="jz jm cn ar ks b bj kt ku r kv" data-selectable-paragraph="">git init [repository name]</span></pre>
<h1 id="5d55" class="jl jm cn ar aq jn jo jp jq jr js jt ju jv jw jx jy" data-selectable-paragraph="">2. add</h1>
<h2 id="31d5" class="jz jm cn ar aq jn ka kb kc kd ke kf kg kh ki kj kk" data-selectable-paragraph="">To add changes to index in your working directory.</h2>
<p id="f4ff" class="ix iy cn ar iz b ja kl jc km je kn jg ko ji kp jk" data-selectable-paragraph="">The git add command adds a change in the working directory to the staging area. It tells git that you want to include updates to a particular file in the next commit.</p>
<pre class="ho hp hq hr hs kq kr du"><span id="3cb2" class="jz jm cn ar ks b bj kt ku r kv" data-selectable-paragraph="">git add [file]</span></pre>
<h1 id="2724" class="jl jm cn ar aq jn jo jp jq jr js jt ju jv jw jx jy" data-selectable-paragraph="">3. commit</h1>
<h2 id="64cb" class="jz jm cn ar aq jn ka kb kc kd ke kf kg kh ki kj kk" data-selectable-paragraph="">To commit your changes and sets it to new commit object for your remote version.</h2>
<p id="0027" class="ix iy cn ar iz b ja kl jc km je kn jg ko ji kp jk" data-selectable-paragraph="">The git commit command captures a snapshot of the project&#8217;s currently staged changes.</p>
<pre class="ho hp hq hr hs kq kr du"><span id="0ad5" class="jz jm cn ar ks b bj kt ku r kv" data-selectable-paragraph="">git commit -m ”commit-message”</span></pre>
<h1 id="b5c5" class="jl jm cn ar aq jn jo jp jq jr js jt ju jv jw jx jy" data-selectable-paragraph="">4. stash</h1>
<h2 id="a730" class="jz jm cn ar aq jn ka kb kc kd ke kf kg kh ki kj kk" data-selectable-paragraph=""><strong class="bu">To save changes that you don’t want to commit immediately.</strong></h2>
<p id="5858" class="ix iy cn ar iz b ja kl jc km je kn jg ko ji kp jk" data-selectable-paragraph="">Use git stash command is used to record the current state of the working directory and the index. This command saves your local modifications away and reverts the working directory to match the head commit.</p>
<pre class="ho hp hq hr hs kq kr du"><span id="e83e" class="jz jm cn ar ks b bj kt ku r kv" data-selectable-paragraph="">git stash [list]</span></pre>
<h1 id="8282" class="jl jm cn ar aq jn jo jp jq jr js jt ju jv jw jx jy" data-selectable-paragraph="">5. push</h1>
<h2 id="0745" class="jz jm cn ar aq jn ka kb kc kd ke kf kg kh ki kj kk" data-selectable-paragraph="">To push the local changes to the master branch of the project.</h2>
<p id="7daf" class="ix iy cn ar iz b ja kl jc km je kn jg ko ji kp jk" data-selectable-paragraph="">The git push command is used to upload local repository content to a remote repository.</p>
<pre class="ho hp hq hr hs kq kr du"><span id="ec47" class="jz jm cn ar ks b bj kt ku r kv" data-selectable-paragraph="">git push [branch-name]</span></pre>
<h1 id="1d62" class="jl jm cn ar aq jn jo jp jq jr js jt ju jv jw jx jy" data-selectable-paragraph="">6. branch</h1>
<h2 id="c9ef" class="jz jm cn ar aq jn ka kb kc kd ke kf kg kh ki kj kk" data-selectable-paragraph="">To list out all the branches in the project.</h2>
<p id="77f6" class="ix iy cn ar iz b ja kl jc km je kn jg ko ji kp jk" data-selectable-paragraph="">The git branch command lets you create, list, rename, and delete branches. However it doesn’t let you switch between branches or put a forked history back together again.</p>
<pre class="ho hp hq hr hs kq kr du"><span id="ec15" class="jz jm cn ar ks b bj kt ku r kv" data-selectable-paragraph="">git branch [branch-name]</span></pre>
<h1 id="204c" class="jl jm cn ar aq jn jo jp jq jr js jt ju jv jw jx jy" data-selectable-paragraph="">7. checkout</h1>
<h2 id="0b90" class="jz jm cn ar aq jn ka kb kc kd ke kf kg kh ki kj kk" data-selectable-paragraph="">To switch to a different branch.</h2>
<p id="7d7b" class="ix iy cn ar iz b ja kl jc km je kn jg ko ji kp jk" data-selectable-paragraph="">The git checkout command lets you navigate between the branches created by git branch. Checking out a branch updates the files in the working directory to match the version stored in that branch, and it tells git to record all new commits on that branch.</p>
<pre class="ho hp hq hr hs kq kr du"><span id="a0c4" class="jz jm cn ar ks b bj kt ku r kv" data-selectable-paragraph="">git checkout [branch-name]</span></pre>
<h1 id="06cf" class="jl jm cn ar aq jn jo jp jq jr js jt ju jv jw jx jy" data-selectable-paragraph="">8. merge</h1>
<h2 id="635a" class="jz jm cn ar aq jn ka kb kc kd ke kf kg kh ki kj kk" data-selectable-paragraph="">To merge two branches you were working on.</h2>
<p id="e0c7" class="ix iy cn ar iz b ja kl jc km je kn jg ko ji kp jk" data-selectable-paragraph="">The git merge command is used to integrate changes from another branch. It combines all the integrated changes into a single commit, instead of preserving them as individual commits.</p>
<pre class="ho hp hq hr hs kq kr du"><span id="bdb0" class="jz jm cn ar ks b bj kt ku r kv" data-selectable-paragraph="">git merge [branch-name]</span></pre>
<h1 id="96fe" class="jl jm cn ar aq jn jo jp jq jr js jt ju jv jw jx jy" data-selectable-paragraph="">9. clone</h1>
<h2 id="5e8f" class="jz jm cn ar aq jn ka kb kc kd ke kf kg kh ki kj kk" data-selectable-paragraph="">To copy a git repository from a remote source.</h2>
<p id="aaa9" class="ix iy cn ar iz b ja kl jc km je kn jg ko ji kp jk" data-selectable-paragraph="">The git clone command copies an existing git repository. This is similar to SVN checkout, except the working copy is a git repository, having its own history, manages its own files, and is a completely isolated environment from the original repository.</p>
<pre class="ho hp hq hr hs kq kr du"><span id="0f74" class="jz jm cn ar ks b bj kt ku r kv" data-selectable-paragraph="">git clone [url]</span></pre>
<h1 id="be41" class="jl jm cn ar aq jn jo jp jq jr js jt ju jv jw jx jy" data-selectable-paragraph="">10. status</h1>
<h2 id="2f0b" class="jz jm cn ar aq jn ka kb kc kd ke kf kg kh ki kj kk" data-selectable-paragraph="">To check the status of files you’ve changed in your working directory</h2>
<p id="cf04" class="ix iy cn ar iz b ja kl jc km je kn jg ko ji kp jk" data-selectable-paragraph="">The git status command displays the state of the working directory and the staging area. It lets you see which changes have been staged, which haven’t, and which files aren’t being tracked by git at the moment.</p>
<pre class="ho hp hq hr hs kq kr du"><span id="ecd9" class="jz jm cn ar ks b bj kt ku r kv" data-selectable-paragraph="">git status</span></pre>
</div>
</div>
</section>
<hr class="kw ef kx bg ky ij kz la lb lc ld" />
<section class="fd fe ff fg fh">
<div class="n p">
<div class="ac ae af ag ah fi aj ak">
<h1 id="5ca8" class="jl jm cn ar aq jn jo le jq lf js lg ju lh jw li jy" data-selectable-paragraph="">References/Further Readings</h1>
<div class="lj lk ll lm ln lo">
<section class="lr eu ev ak dc n ap ls lt lu lv lw lx ly lz ma mb mc md me mf mg">
<div class="mh n ex p mi mj">
<div class="bd lp bc gp lq gr">Git &#8211; git-status Documentation</div>
<div class="ml r">
<div class="bd lp bc gp lq gr">s &#8211;short Give the output in the short-format. -b &#8211;branch Show the branch and tracking info even in short-format…</div>
</div>
<div class="mm r">
<div class="bd lp bc gp lq gr">git-scm.com</div>
</div>
</div>
</section>
</div>
<div class="lj lk ll lm ln lo">
<section class="lr eu ev ak dc n ap ls lt lu lv lw lx ly lz ma mb mc md me mf mg">
<div class="mh n ex p mi mj">
<div class="bd lp bc gp lq gr">Top 20 Git Commands With Examples &#8211; DZone Open Source</div>
<div class="ml r">
<div class="bd lp bc gp lq gr">In the previous blog, you got an understanding of what git is. In this blog, I will talk about the Top 20 Git Commands…</div>
</div>
<div class="mm r">
<div class="bd lp bc gp lq gr">dzone.com</div>
</div>
</div>
<div class="mn r">
<div class="sg r mp mq mr mn ms mt mu"> </div>
</div>
</section>
</div>
<div class="lj lk ll lm ln lo">
<section class="lr eu ev ak dc n ap ls lt lu lv lw lx ly lz ma mb mc md me mf mg">
<div class="mh n ex p mi mj">
<div class="mm r">
<div class="bd lp bc gp lq gr">Happy coding!</div>
</div>
</div>
</section>
</div>
</div>
</div>
</section>

<p>&nbsp;</p><p>The post <a href="http://kostacipo.stream/turn-your-commute-into-a-learning-experience/">10 Useful Git Commands You Should Know</a> appeared first on <a href="http://kostacipo.stream">Tech Chronicles</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://kostacipo.stream/turn-your-commute-into-a-learning-experience/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
