<?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>Git &#8211; Nexto</title>
	<atom:link href="https://nexto.ch/category/git/feed/" rel="self" type="application/rss+xml" />
	<link>https://nexto.ch</link>
	<description>Business Empowerment</description>
	<lastBuildDate>Sat, 26 Oct 2024 15:29:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>Guide to Using Git for Version Control</title>
		<link>https://nexto.ch/lamp/guide-to-using-git-for-version-control/</link>
		
		<dc:creator><![CDATA[Nexto]]></dc:creator>
		<pubDate>Mon, 15 Jul 2024 15:16:25 +0000</pubDate>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[Lamp]]></category>
		<guid isPermaLink="false">https://nexto.ch/?p=226674</guid>

					<description><![CDATA[Introduction Git is a distributed version control system widely used to manage...]]></description>
										<content:encoded><![CDATA[<h3>Introduction</h3>
<p>Git is a distributed version control system widely used to manage software development projects. This guide will introduce you to the fundamental commands of Git, helping you get started with version control.</p>
<h4>Prerequisites</h4>
<ul>
<li>A system with Git installed.</li>
<li>Basic command-line knowledge.</li>
</ul>
<h5>Step 1: Install Git</h5>
<p>On Ubuntu/Debian:</p>
<pre>sudo apt update
sudo apt install git -y
</pre>
<h5>Step 2: Configure Git</h5>
<p>Set your username and email (required for commits):</p>
<pre>git config --global user.name "Your Name"
git config --global user.email "youremail@example.com"
</pre>
<h5>Step 3: Create a New Repository</h5>
<ul>
<li>Create a new directory for your project:</li>
</ul>
<pre>mkdir my_project
cd my_project
</pre>
<ul>
<li>Initialize Git:</li>
</ul>
<pre>git init
</pre>
<h5>Step 4: Add Files to the Repository</h5>
<ul>
<li>Create a file:</li>
</ul>
<pre>echo "# Project Title" &gt; README.md
</pre>
<ul>
<li>Add the file to Git tracking:</li>
</ul>
<pre>git add README.md
</pre>
<h5>Step 5: Make a Commit</h5>
<ul>
<li>Record the changes in the repository:</li>
</ul>
<pre>git commit -m "Add README.md file"
</pre>
<h5>Step 6: Clone an Existing Repository</h5>
<p>To clone a remote repository:</p>
<pre>git clone https://github.com/user/repository.git
</pre>
<h5>Step 7: View the Repository Status</h5>
<p>Check which files have been modified or are waiting to be committed:</p>
<pre>git status
</pre>
<h5>Step 8: View Commit History</h5>
<p>Display the commit history:</p>
<pre>git log
</pre>
<h5>Step 9: Work with Branches</h5>
<ul>
<li>Create a new branch:</li>
</ul>
<pre>git branch new_feature
</pre>
<ul>
<li>Switch to the new branch:</li>
</ul>
<pre>git checkout new_feature
</pre>
<h5>Step 10: Merge Branches</h5>
<ul>
<li>Return to the main branch:</li>
</ul>
<pre>git checkout main
</pre>
<ul>
<li>Merge the changes:</li>
</ul>
<pre>git merge new_feature
</pre>
<h5>Step 11: Manage a Remote Repository</h5>
<ul>
<li>Add a remote repository:</li>
</ul>
<pre>git remote add origin https://github.com/user/repository.git
</pre>
<ul>
<li>Push changes to the remote:</li>
</ul>
<pre>git push -u origin main
</pre>
<h5>Step 12: Update the Local Repository</h5>
<p>To get the latest changes from the remote repository:</p>
<pre>git pull
</pre>
<h4>Conclusion</h4>
<p>Now you know the fundamental commands to use Git in version control for your projects. Continue exploring advanced features to improve your workflow.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
