<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.outlandsmud.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Michael+Kohler</id>
	<title>UNIX Systems Administration - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://www.outlandsmud.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Michael+Kohler"/>
	<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/Special:Contributions/Michael_Kohler"/>
	<updated>2026-05-18T04:52:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=TSM_Server_Extend_Database&amp;diff=1431</id>
		<title>TSM Server Extend Database</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=TSM_Server_Extend_Database&amp;diff=1431"/>
		<updated>2026-04-06T12:50:31Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Planning ==&lt;br /&gt;
# This procedure can only be performed on TSM Server 5.x &lt;br /&gt;
# Efficient available space.&lt;br /&gt;
&lt;br /&gt;
== Server Preparation ==&lt;br /&gt;
# On the AIX command line extend the logical volume containing the database files.&lt;br /&gt;
#: &#039;&#039;&#039;&amp;lt;tt&amp;gt;# chfs size=+&amp;lt;Space in MB&amp;gt; &amp;lt;path to logical volume&amp;gt;&amp;lt;/tt&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extending the TSM Database ==&lt;br /&gt;
&lt;br /&gt;
=== Integrated Solutions Console ===&lt;br /&gt;
# Extend Tivoli Storage Manager&lt;br /&gt;
#: Click: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Storage Devices&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Select: the server.&lt;br /&gt;
#: From the drop down menu Select: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Server Properties&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Select: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Database and Log&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: In the Database Window Select Action, Select: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Add Volume&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Enter the fully qualified path under Volume name.&lt;br /&gt;
#: Add the size that you allocated when performing the chfs.&lt;br /&gt;
#: Check: &amp;lt;tt&amp;gt;&#039;&#039;&#039;When adding the new volume, expand the database capacity by&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Enter the amount you allocated int the MB box.&lt;br /&gt;
#: Click: &amp;lt;tt&amp;gt;&#039;&#039;&#039;OK&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Tivoli Console v5 and Prior ===&lt;br /&gt;
# Open the Tivoli Storage Manager Administrative Console&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# cd /usr/tivoli/tsm/client/ba/bin&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# dsmadmc&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Create a new database volume.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;TSM&amp;gt; define dbv &amp;lt;fully qualified path&amp;gt;db&amp;lt;#&amp;gt;.dsm formatsize=&amp;lt;size from chfs command&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Extend the database.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;TSM&amp;gt; extend db &amp;lt;size from the chfs command&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Tivoli Console v6 and above ===&lt;br /&gt;
# Open the Tivoli Storage Manager Administrative Console&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# cd /usr/tivoli/tsm/client/ba/bin&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# dsmadmc&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Create a new database volume.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;TSM&amp;gt; EXTend DBSpace &amp;lt;path to db directory&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [http://publib.boulder.ibm.com/infocenter/tivihelp/v1r1/index.jsp IBM Tivoli Storage Manager Infocenter]&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Tivoli]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=TSM_Server_Extend_Database&amp;diff=1430</id>
		<title>TSM Server Extend Database</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=TSM_Server_Extend_Database&amp;diff=1430"/>
		<updated>2026-04-06T12:50:07Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Planning ==&lt;br /&gt;
# This procedure can only be performed on TSM Server 5.x &lt;br /&gt;
# Efficient available space.&lt;br /&gt;
&lt;br /&gt;
== Server Preparation ==&lt;br /&gt;
# On the AIX command line extend the logical volume containing the database files.&lt;br /&gt;
#: &#039;&#039;&#039;&amp;lt;tt&amp;gt;# chfs size=+&amp;lt;Space in MB&amp;gt; &amp;lt;path to logical volume&amp;gt;&amp;lt;/tt&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extending the TSM Database ==&lt;br /&gt;
&lt;br /&gt;
=== Integrated Solutions Console ===&lt;br /&gt;
# Extend Tivoli Storage Manager&lt;br /&gt;
#: Click: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Storage Devices&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Select: the server.&lt;br /&gt;
#: From the drop down menu Select: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Server Properties&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Select: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Database and Log&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: In the Database Window Select Action, Select: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Add Volume&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Enter the fully qualified path under Volume name.&lt;br /&gt;
#: Add the size that you allocated when performing the chfs.&lt;br /&gt;
#: Check: &amp;lt;tt&amp;gt;&#039;&#039;&#039;When adding the new volume, expand the database capacity by&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Enter the amount you allocated int the MB box.&lt;br /&gt;
#: Click: &amp;lt;tt&amp;gt;&#039;&#039;&#039;OK&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Tivoli Console v5 and Prior ===&lt;br /&gt;
# Open the Tivoli Storage Manager Administrative Console&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# cd /usr/tivoli/tsm/client/ba/bin&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# dsmadmc&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Create a new database volume.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;TSM&amp;gt; define dbv &amp;lt;fully qualified path&amp;gt;db&amp;lt;#&amp;gt;.dsm formatsize=&amp;lt;size from chfs command&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Extend the database.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;TSM&amp;gt; extend db &amp;lt;size from the chfs command&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Tivoli Console v6 and above ===&lt;br /&gt;
# Open the Tivoli Storage Manager Administrative Console&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# cd /usr/tivoli/tsm/client/ba/bin&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# dsmadmc&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Create a new database volume.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;TSM&amp;gt; EXTend DBSpace &amp;lt;path to db directory&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [http://publib.boulder.ibm.com/infocenter/tivihelp/v1r1/index.jsp IBM Tivoli Storage Manager Infocenter]&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:Tivoli]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=HMC_Initialize_an_LPAR&amp;diff=1429</id>
		<title>HMC Initialize an LPAR</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=HMC_Initialize_an_LPAR&amp;diff=1429"/>
		<updated>2026-04-06T12:48:35Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* Initialize a Full System LPAR */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Initialize a Full System LPAR ==&lt;br /&gt;
# Logon to the HMC as an administrator.&lt;br /&gt;
# Expand: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Systems Management-&amp;gt;Servers&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Highlight the server.&lt;br /&gt;
#: From the Tasks Panel Select: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Properties&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Ensure &amp;quot;Power off the system after all logical partitions are powered off&amp;quot; is not checked.&lt;br /&gt;
# From AIX shutdown the LPAR.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# shutdown -h now&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Remove the LPAR from the HMC&#039;s NVRAM.&lt;br /&gt;
#: Expand: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Systems Management-&amp;gt;Servers&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Highlight the server&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: From the Tasks Panel Expand: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Configuration-&amp;gt;Manage Partition Data&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Click: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Initialize&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Confirm your choice.&lt;br /&gt;
# Recreating the LPAR.&lt;br /&gt;
#: Expand: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Systems Management-&amp;gt;Servers&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Highlight the server&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: From the Tasks Panel Expand: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Configuration-&amp;gt;Create Logical Partition.&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Click: &amp;lt;tt&amp;gt;&#039;&#039;&#039;AIX or Linux&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Name the LPAR as the serial number of the system and the Profile as anything.&lt;br /&gt;
#: Check: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Use all the resources in the system&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Click: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Finish&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.doc/doc/base/aixinformation.htm IBM pSeries and AIX Information Center]&lt;br /&gt;
&lt;br /&gt;
[[Category:AIX]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=HMC_Initialize_an_LPAR&amp;diff=1428</id>
		<title>HMC Initialize an LPAR</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=HMC_Initialize_an_LPAR&amp;diff=1428"/>
		<updated>2026-04-06T12:43:34Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* Initialize a Full System LPAR */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Initialize a Full System LPAR ==&lt;br /&gt;
# Logon to the HMC as an administrator.&lt;br /&gt;
# &#039;&#039;&#039;Expand:&#039;&#039;&#039; Systems Management-&amp;gt;Servers.&lt;br /&gt;
#: Highlight the server.&lt;br /&gt;
#: From the Tasks Panel &#039;&#039;&#039;Select:&#039;&#039;&#039; Properties.&lt;br /&gt;
#: Ensure &amp;quot;Power off the system after all logical partitions are powered off&amp;quot; is not checked.&lt;br /&gt;
# From AIX shutdown the LPAR.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# shutdown -h now&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Remove the LPAR from the HMC&#039;s NVRAM.&lt;br /&gt;
#: &#039;&#039;&#039;Expand:&#039;&#039;&#039; Systems Management-&amp;gt;Servers.&lt;br /&gt;
#: Highlight the server.&lt;br /&gt;
#: From the Tasks Panel &#039;&#039;&#039;Expand:&#039;&#039;&#039; Configuration-&amp;gt;Manage Partition Data.&lt;br /&gt;
#: &#039;&#039;&#039;Click:&#039;&#039;&#039; Initialize&lt;br /&gt;
#: Confirm your choice.&lt;br /&gt;
# Recreating the LPAR.&lt;br /&gt;
#: &#039;&#039;&#039;Expand:&#039;&#039;&#039; Systems Management-&amp;gt;Servers.&lt;br /&gt;
#: Highlight the server.&lt;br /&gt;
#: From the Tasks Panel &#039;&#039;&#039;Expand:&#039;&#039;&#039; Configuration-&amp;gt;Create Logical Partition.&lt;br /&gt;
#: &#039;&#039;&#039;Click:&#039;&#039;&#039; AIX or Linux.&lt;br /&gt;
#: Name the LPAR as the serial number of the system and the Profile as anything.&lt;br /&gt;
#: &#039;&#039;&#039;Check:&#039;&#039;&#039; Use all the resources in the system.&lt;br /&gt;
#: &#039;&#039;&#039;Click:&#039;&#039;&#039; Finish&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.doc/doc/base/aixinformation.htm IBM pSeries and AIX Information Center]&lt;br /&gt;
&lt;br /&gt;
[[Category:AIX]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=Tivoli_dsmc_Arguments&amp;diff=1427</id>
		<title>Tivoli dsmc Arguments</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=Tivoli_dsmc_Arguments&amp;diff=1427"/>
		<updated>2026-04-02T19:44:31Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* All Client Platforms */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== dsmc Arguments ==&lt;br /&gt;
== All Client Platforms==&lt;br /&gt;
# &amp;lt;tt&amp;gt;&#039;&#039;&#039;# dsmc &amp;lt;command&amp;gt; &amp;lt;command options&amp;gt; &amp;lt;options&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: Ex: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# dsmc query backup -subdir=yes -inactive &amp;lt;path&amp;gt; -optfile=&amp;lt;optfile&amp;gt;.opt&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [http://publib.boulder.ibm.com/infocenter/tivihelp/v1r1/index.jsp IBM Tivoli Storage Manager Infocenter]&lt;br /&gt;
# [http://publib.boulder.ibm.com/infocenter/tivihelp/v1r1/index.jsp?topic=%2Fcom.ibm.itsmfdt.doc%2Fans60000145.htm Restoring data using the command line]&lt;br /&gt;
# [https://publib.boulder.ibm.com/tividd/td/TSMC/GC32-0789-04/en_US/HTML/ans50000127.htm Restoring data using the command line]&lt;br /&gt;
&lt;br /&gt;
[[Category: Software]]&lt;br /&gt;
[[Category: Tivoli]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=Tivoli_Enable_Firewall_Ports&amp;diff=1426</id>
		<title>Tivoli Enable Firewall Ports</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=Tivoli_Enable_Firewall_Ports&amp;diff=1426"/>
		<updated>2026-04-02T19:44:17Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* Client Side */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Client Side ==&lt;br /&gt;
# The following TSM client/server ports will need to be configured as follows through the client and any hardware firewalls.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Server Port:&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;1500/tcp outbound&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Client Acceptor:&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;1552/tcp inbound/outbound&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Remote Client Agent: 1553/tcp inbound/outbound&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;Web Client:&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;1581/tcp inbound/outbound&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# In the dsm.opt (Windows) dsm.sys (UNIX) add the following options.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;TCPPort&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;1500&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;WEBport&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;1552 1553&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;HTTPport&amp;amp;nbsp;&amp;amp;nbsp;1581&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# If there are continued issues, the following setting may resolve the issue.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;tsm: [tsm server name]&amp;gt; UPDate Node &amp;lt;node name&amp;gt; HLAddress=&amp;lt;client IP address&amp;gt; LLAddress=1581&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [http://www-01.ibm.com/support/docview.wss?uid=swg21307282 Tivoli Storage Manager client setup in a firewall environment]&lt;br /&gt;
# [http://www.ibm.com/support/knowledgecenter/SSGSG7_7.1.4/client/c_opt_clioptref.html Tivoli Storage Manager Client options reference]&lt;br /&gt;
&lt;br /&gt;
[[Category: Software]]&lt;br /&gt;
[[Category: Tivoli]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=Tivoli_Client_Scheduler_Troubleshooting&amp;diff=1425</id>
		<title>Tivoli Client Scheduler Troubleshooting</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=Tivoli_Client_Scheduler_Troubleshooting&amp;diff=1425"/>
		<updated>2026-04-02T19:43:46Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Client Scheduler Troubleshooting ==&lt;br /&gt;
# Always check your firewall ports.&lt;br /&gt;
## Check CAD from the TSM Server by telnetting to the client node on port 1581.&lt;br /&gt;
## Check the connection from the client node by running dsmc from the command line on the client node.&lt;br /&gt;
&lt;br /&gt;
== AIX and Linux==&lt;br /&gt;
# The &amp;lt;tt&amp;gt;&#039;&#039;&#039;dsm.sys&#039;&#039;&#039;&amp;lt;/tt&amp;gt; file if using &amp;lt;tt&amp;gt;&#039;&#039;&#039;MANAGEDSERVICES&#039;&#039;&#039;&amp;lt;/tt&amp;gt; option must be commented out and the scheduler that is being reviewed must be running.&lt;br /&gt;
# The following commands must be run as a user with rights to Tivoli.&lt;br /&gt;
# Path to the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/usr/tivoli/tsm/client/ba/bin64&#039;&#039;&#039;&amp;lt;/tt&amp;gt; folder.&lt;br /&gt;
# Run the dsm client program to start the scheduler in the foreground.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;dsmc sched -optfile=&amp;quot;&amp;lt;path to the options&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# On the TSM Server, modify the schedule or create a new scheduler with the option &amp;lt;tt&amp;gt;&#039;&#039;&#039;STARTTIME=now&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Review and correct errors on the client side.&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
# The &amp;lt;tt&amp;gt;&#039;&#039;&#039;dsm.opt&#039;&#039;&#039;&amp;lt;/tt&amp;gt; file if using &amp;lt;tt&amp;gt;&#039;&#039;&#039;MANAGEDSERVICES&#039;&#039;&#039;&amp;lt;/tt&amp;gt; option must be commented out and the scheduler that is being reviewed must be running.&lt;br /&gt;
# Run &amp;lt;tt&amp;gt;&#039;&#039;&#039;CMD.EXE&#039;&#039;&#039;&amp;lt;/tt&amp;gt; as Administrator.&lt;br /&gt;
# Path to the baclient folder.&lt;br /&gt;
# Gather the list of installed TSM Client Schedulers.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;dsmcutil list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Gather the &amp;lt;tt&amp;gt;&#039;&#039;&#039;dsm.opt&#039;&#039;&#039;&amp;lt;/tt&amp;gt; path from the options field for the failing scheduler service, use the output exactly from the previous step.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;dsmcutil query /name:&amp;quot;&amp;lt;name of TSM scheduler&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Run the dsm client program to start the scheduler in the foreground.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;dsmc sched -optfile=&amp;quot;&amp;lt;path to the options file from the previous step&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# On the TSM Server, modify the schedule or create a new scheduler with the option &amp;lt;tt&amp;gt;&#039;&#039;&#039;STARTTIME=now&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Review and correct errors on the client side.&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [http://www-01.ibm.com/support/knowledgecenter/SSGSG7/welcome?lang=en IBM Knowledge Center]&lt;br /&gt;
# [http://www-01.ibm.com/support/docview.wss?uid=swg21284034 Scheduled backup fails with ANS1909E, ANS1512E, or ANR2579E]&lt;br /&gt;
# [http://pic.dhe.ibm.com/infocenter/tsminfo/v6r2/index.jsp?topic=%2Fcom.ibm.itsm.client.doc%2Fc_cfg_dsmcutil_cmdwin.html Dsmcutil commands: Required options and examples]&lt;br /&gt;
# [http://pic.dhe.ibm.com/infocenter/tsminfo/v6r2/index.jsp?topic=%2Fcom.ibm.itsm.client.doc%2Fc_cfg_dsmcutil_cmdwin.html Dsmcutil valid options]&lt;br /&gt;
&lt;br /&gt;
[[Category: Software]]&lt;br /&gt;
[[Category: Tivoli]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=Software&amp;diff=1424</id>
		<title>Software</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=Software&amp;diff=1424"/>
		<updated>2026-04-02T19:42:38Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[Ansible Automation Platform|Ansible Automation Platform]]&lt;br /&gt;
* [[Apache|Apache]]&lt;br /&gt;
* [[Caché|Caché]]&lt;br /&gt;
* [[Commvault|Commvault]]&lt;br /&gt;
* [[GIT Cheatsheet|GIT]]&lt;br /&gt;
* [[GlusterFS|GlusterFS]]&lt;br /&gt;
* [[MySQL|MySQL]]&lt;br /&gt;
* [[Nagios|Nagios]]&lt;br /&gt;
* [[OpenSSH|OpenSSH]]&lt;br /&gt;
* [[SSL|SSL]]&lt;br /&gt;
* [[Tivoli|Tivoli]]&lt;br /&gt;
&lt;br /&gt;
[[Category: Software]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=AIX&amp;diff=1423</id>
		<title>AIX</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=AIX&amp;diff=1423"/>
		<updated>2026-04-02T19:40:17Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* Fibre Channel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;lt;div style=&#039;width: 100%&#039;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&#039;section&#039;&amp;gt;&lt;br /&gt;
== General ==&lt;br /&gt;
* [[File Ownership Commands|File Ownership Commands]]&lt;br /&gt;
* [[AIX alt disk install|alt_disk_install]]&lt;br /&gt;
* [[AIX bootinfo Command|bootinfo command]]&lt;br /&gt;
* [[AIX Backup and Restore|Backup and Restore]]&lt;br /&gt;
* [[AIX Recovering root Password|Recover root Password]]&lt;br /&gt;
* [[Installing OpenSSH Server|Installing OpenSSH Server]]&lt;br /&gt;
* [[Mounting a CD/DVD Device|Mounting a CD/DVD Device]]&lt;br /&gt;
* [[Mounting an ISO Image|Mounting an ISO Image]]&lt;br /&gt;
* [[Recreating the boot logical volume|Recreate the boot logical volume]]&lt;br /&gt;
* [[AIX Switching Kernel Bit Modes|Switching Kernel Bit Modes]]&lt;br /&gt;
* [[SSH Key Authentication|SSH Key Authentication]]&lt;br /&gt;
* [[Device Management|Device Management]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&#039;section&#039;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Storage Operations ==&lt;br /&gt;
* [[LVM Resize a Filesystem|LV Resize Filesystem]]&lt;br /&gt;
* [[LVM Add a PVID to a Disk|PV add PVID to Disk]]&lt;br /&gt;
* [[LVM Install a New Physical Volume|PV Install]]&lt;br /&gt;
* [[LVM Remove a Physical Volume|PV Removal]]&lt;br /&gt;
* [[LVM Disk Replacement|PV Replacement]]&lt;br /&gt;
* [[LVM Mirror Volume Group|VG Mirroring]]&lt;br /&gt;
* [[LVM ODM Problems|VG ODM Corruption]]&lt;br /&gt;
* [[FS Repair a Corrupted Filesystem|FS Repair a Corrupted Filesystem]]&lt;br /&gt;
* [[LVM Breaking the Persistent Reserve|Breaking the Persistent Reserve]]&lt;br /&gt;
* [[RAID Disk Replacement on IBM Power Platform|RAID Disk Replacement on IBM Power Platform]]&lt;br /&gt;
* [[Increasing Swap Space|Increasing Swap Space]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&#039;section&#039;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Object Data Manager ==&lt;br /&gt;
* [[LVM ODM Problems|VG ODM Corruption]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&#039;section&#039;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Network Install Manager ==&lt;br /&gt;
* [[NIM Machines]]&lt;br /&gt;
* [[NIM Network Install]]&lt;br /&gt;
* [[NIM Resources]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&#039;section&#039;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Fibre Channel ==&lt;br /&gt;
* [[Replacing SDD FC Adapter]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&#039;section&#039;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Security ==&lt;br /&gt;
* [[LPA Enhanced Security]]&lt;br /&gt;
* [[AIX Long Usernames]]&lt;br /&gt;
* [[/var/adm/wtmp Truncation]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&#039;section&#039;&amp;gt;&lt;br /&gt;
== HMC ==&lt;br /&gt;
* [[HMC Console Alternatives]]&lt;br /&gt;
* [[HMC Initialize an LPAR]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&#039;section&#039;&amp;gt;&lt;br /&gt;
== Network ==&lt;br /&gt;
* [[LACP (802.3ad) Configuration &amp;amp; Verification]]&lt;br /&gt;
* [[List Process tied to Port]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&#039;section&#039;&amp;gt;&lt;br /&gt;
== Resources ==&lt;br /&gt;
* [http://www-01.ibm.com/support/knowledgecenter/ssw_aix/welcome?lang=en IBM Knowledge Center]&lt;br /&gt;
* [http://www.ibm.com/developerworks/aix/ IBM developerWorks AIX Zone]&lt;br /&gt;
* [http://www.ibm.com/developerworks/wikis/display/WikiPtype/AIX IBM developerWorks System Administration Wiki]&lt;br /&gt;
* [http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp IBM pSeries and AIX Information Center]&lt;br /&gt;
* [http://www.ibm.com/developerworks/aix/library/au-dutta_cmds.html AIX Commands You Should Never Leave Home Witout]&lt;br /&gt;
* [http://aix4admins.blogspot.com/2011/06/commands-oslevel-shows-actual-bos-level.html Practical Guide to AIX]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:AIX]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=LVM_Breaking_the_Persistent_Reserve&amp;diff=1422</id>
		<title>LVM Breaking the Persistent Reserve</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=LVM_Breaking_the_Persistent_Reserve&amp;diff=1422"/>
		<updated>2026-04-02T19:39:33Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* Breaking the Persistent Reserve of a Shared Non-concurrent Volume Group */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Breaking the Persistent Reserve of a Shared Non-concurrent Volume Group ==&lt;br /&gt;
# Special care must be taken when using this method of importing changes of a shared volume group. The system can become corrupted and data loss will occure.&lt;br /&gt;
# On the system with the online active volume group, break the persistent reserve.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# varyonvg -bu &amp;lt;volume group&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# On the system you want to import the changes to, import the volume group but &amp;lt;b&amp;gt;DO NOT&amp;lt;/b&amp;gt; activate it.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# importvg -L &amp;lt;volume group&amp;gt; -n &amp;lt;physical volume&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# After the import is successful on the online active volume group, reset the persistent reserve.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# varyonvg &amp;lt;volume group&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [http://justaix.blogspot.com/2011/01/normalnot-concurrent-shared-volume.html Non-Concurrent Shared Volume Changes]&lt;br /&gt;
&lt;br /&gt;
[[Category:AIX]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=LVM_ODM_Problems&amp;diff=1421</id>
		<title>LVM ODM Problems</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=LVM_ODM_Problems&amp;diff=1421"/>
		<updated>2026-04-02T19:39:12Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* Fixing ODM Problems (non-rootvg) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Fixing ODM Problems (non-rootvg) ==&lt;br /&gt;
# Unmount all file systems associated with the volume group.&lt;br /&gt;
# Varyoff the volume group, you may need to use a -f to force varyoff.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# varyoffvg &amp;lt;vg_name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Remove volume group information from the ODM.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exportvg &amp;lt;vg_name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Import the volume group information back into the ODM.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# importvg -y &amp;lt;vg_name&amp;gt; &amp;lt;hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Fixing ODM Problems (rootvg) ==&lt;br /&gt;
# Create the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PV=hdisk#&lt;br /&gt;
VG=rootvg&lt;br /&gt;
&lt;br /&gt;
cp -p /etc/objrepos/CuAt /etc/objrepos/CuAt.$$&lt;br /&gt;
cp -p /etc/objrepos/CuDep /etc/objrepos/CuDep.$$&lt;br /&gt;
cp -p /etc/objrepos/CuDv /etc/objrepos/CuDv.$$&lt;br /&gt;
cp -p /etc/objrepos/CuDvDr /etc/objrepos/CuDvDr.$$&lt;br /&gt;
&lt;br /&gt;
lqueryvg -Lp $PV | awk &#039;{ print $2 }&#039; | while read LVname;&lt;br /&gt;
do&lt;br /&gt;
     odmdelete -q &amp;quot;name=$LVname&amp;quot; -o CuAt&lt;br /&gt;
     odmdelete -q &amp;quot;name=$LVname&amp;quot; -o CuDv&lt;br /&gt;
     odmdelete -q &amp;quot;value3=$LVname&amp;quot; -o CuDvDr&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
odmdelete -q &amp;quot;name=$VG&amp;quot; -o CuAt&lt;br /&gt;
odmdelete -q &amp;quot;parent=$VG&amp;quot; -o CuDv&lt;br /&gt;
odmdelete -q &amp;quot;name=$VG&amp;quot; -o CuDv&lt;br /&gt;
odmdelete -q &amp;quot;name=$VG&amp;quot; -o CuDep&lt;br /&gt;
odmdelete -q &amp;quot;dependency=$VG&amp;quot; -o CuDep&lt;br /&gt;
odmdelete -q &amp;quot;value1=10&amp;quot; -o CuDvDr&lt;br /&gt;
odmdelete -q &amp;quot;value3=$VG&amp;quot; -o CuDvDr&lt;br /&gt;
&lt;br /&gt;
importvg -y $VG $PV                    # ignore lvaryoffvg errors&lt;br /&gt;
varyonvg $VG&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp IBM pSeries and AIX Information Center]&lt;br /&gt;
&lt;br /&gt;
[[Category:AIX]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=LVM_Disk_Replacement&amp;diff=1420</id>
		<title>LVM Disk Replacement</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=LVM_Disk_Replacement&amp;diff=1420"/>
		<updated>2026-04-02T19:38:37Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== rootvg ==&lt;br /&gt;
=== Replacing a Working rootvg Physical Volume ===&lt;br /&gt;
# [[LVM Install a New Physical Volume|Install and configure the new physical volume.]]&lt;br /&gt;
# Add the new disk to the volume group.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# extendvg rootvg &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Does the disk contain hd5 (boot partition)?&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# lslv -m hd5&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# No? skip to next step, yes? continue.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# migratepv -l hd5 &amp;lt;old_hdisk#&amp;gt; &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# bosboot -ad &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# chpv -c &amp;lt;old_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# bootlist -m normal &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Disable the system dump device.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# sysdupdev -p /dev/sysdumpnull&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Migrate data from old physical volume to new physical volume.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# migratepv &amp;lt;old_hdisk#&amp;gt; &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Enable the system dump device.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# sysdupdev -p /dev/&amp;lt;lv_name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Remove the old physical volume from the volume group.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# reducevg rootvg &amp;lt;old_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# [[LVM Remove a Physical Volume|Remove the old physical volume from the system.]]&lt;br /&gt;
&lt;br /&gt;
=== Replacing a Mirrored rootvg Physical Volume ===&lt;br /&gt;
# Break the mirror.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# unmirrorvg rootvg &amp;lt;old_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Remove the old physical volume from the volume group.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# reducevg rootvg &amp;lt;old_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# [[LVM Remove a Physical Volume|Remove the old physical volume from the system.]]&lt;br /&gt;
# [[LVM Install a New Physical Volume|Install and configure the new physical volume.]]&lt;br /&gt;
# Add the new disk to the volume group.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# extendvg rootvg &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Mirror the volume group.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# mirrorvg -S -c2 rootvg &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Verify the stale PPs in the volume group are 0.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# lsvg rootvg | grep STALE&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Add the ipldevice to all of the rootvg physical volumes.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# bosboot -ad &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# bosboot -ad &amp;lt;current_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt; (this step will have to be repeated for each hdisk containing the ipldevice associated with rootvg.&lt;br /&gt;
# Modify the bootlist to include ALL physical volumes&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# bootlist -m normal &amp;lt;new_hdisk# current_hdisk#...&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== non-rootvg ==&lt;br /&gt;
=== Replacing a Working non-rootvg Physical Volume ===&lt;br /&gt;
# [[LVM Install a New Physical Volume|Install and configure the new physical volume.]]&lt;br /&gt;
# Add the new physical volume to the volume group.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# extendvg &amp;lt;vg_name&amp;gt; &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Migrate the logical volumes to the new physical volume.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# migratepv &amp;lt;old_hdisk#&amp;gt; &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Remove the old physical volume from the volume group.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# reducevg &amp;lt;vg_name&amp;gt; &amp;lt;old_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# [[LVM Remove a Physical Volume|Remove the old physical volume from the system.]]&lt;br /&gt;
&lt;br /&gt;
=== Replacing a Mirrored non-rootvg Physical Volume ===&lt;br /&gt;
# Break the mirror.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# unmirrorvg &amp;lt;vg_name&amp;gt; &amp;lt;old_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Remove the disk from the volume group.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# reducevg &amp;lt;vg_name&amp;gt; &amp;lt;old_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# [[LVM Remove a Physical Volume|Remove the old physical volume from the system.]]&lt;br /&gt;
# [[LVM Install a New Physical Volume|Install and configure the new physical volume.]]&lt;br /&gt;
# Add the new disk to the volume group.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# extendvg &amp;lt;vg_name&amp;gt; &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Mirror the volume group (syn in background, ensuring a copy on each disk).&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# mirrorvg -S -c2 &amp;lt;vg_name&amp;gt; &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Synchronize the volume group.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# syncvg -v &amp;lt;vg_name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp IBM pSeries and AIX Information Center]&lt;br /&gt;
&lt;br /&gt;
[[Category:AIX]]&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=LVM_Disk_Replacement&amp;diff=1419</id>
		<title>LVM Disk Replacement</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=LVM_Disk_Replacement&amp;diff=1419"/>
		<updated>2026-04-02T19:37:48Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* Replacing a Working rootvg Physical Volume */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== rootvg ==&lt;br /&gt;
=== Replacing a Working rootvg Physical Volume ===&lt;br /&gt;
# [[LVM Install a New Physical Volume|Install and configure the new physical volume.]]&lt;br /&gt;
# Add the new disk to the volume group.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# extendvg rootvg &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Does the disk contain hd5 (boot partition)?&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# lslv -m hd5&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# No? skip to next step, yes? continue.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# migratepv -l hd5 &amp;lt;old_hdisk#&amp;gt; &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# bosboot -ad &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# chpv -c &amp;lt;old_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# bootlist -m normal &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Disable the system dump device.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# sysdupdev -p /dev/sysdumpnull&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Migrate data from old physical volume to new physical volume.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# migratepv &amp;lt;old_hdisk#&amp;gt; &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Enable the system dump device.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# sysdupdev -p /dev/&amp;lt;lv_name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Remove the old physical volume from the volume group.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# reducevg rootvg &amp;lt;old_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# [[LVM Remove a Physical Volume|Remove the old physical volume from the system.]]&lt;br /&gt;
&lt;br /&gt;
=== Replacing a Mirrored rootvg Physical Volume ===&lt;br /&gt;
# Break the mirror.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# unmirrorvg rootvg &amp;lt;old_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Remove the old physical volume from the volume group.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# reducevg rootvg &amp;lt;old_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# [[LVM Remove a Physical Volume|Remove the old physical volume from the system.]]&lt;br /&gt;
# [[LVM Install a New Physical Volume|Install and configure the new physical volume.]]&lt;br /&gt;
# Add the new disk to the volume group.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# extendvg rootvg &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Mirror the volume group.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# mirrorvg -S -c2 rootvg &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Verify the stale PPs in the volume group are 0.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# lsvg rootvg | grep STALE&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Add the ipldevice to all of the rootvg physical volumes.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# bosboot -ad &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# bosboot -ad &amp;lt;current_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt; (this step will have to be repeated for each hdisk containing the ipldevice associated with rootvg.&lt;br /&gt;
# Modify the bootlist to include ALL physical volumes&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# bootlist -m normal &amp;lt;new_hdisk# current_hdisk#...&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== non-rootvg ==&lt;br /&gt;
=== Replacing a Working non-rootvg Physical Volume ===&lt;br /&gt;
# [[LVM Install a New Physical Volume|Install and configure the new physical volume.]]&lt;br /&gt;
# Add the new physical volume to the volume group.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# extendvg &amp;lt;vg_name&amp;gt; &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Migrate the logical volumes to the new physical volume.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# migratepv &amp;lt;old_hdisk#&amp;gt; &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Remove the old physical volume from the volume group.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# reducevg &amp;lt;vg_name&amp;gt; &amp;lt;old_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# [[LVM Remove a Physical Volume|Remove the old physical volume from the system.]]&lt;br /&gt;
&lt;br /&gt;
=== Replacing a Mirrored non-rootvg Physical Volume ===&lt;br /&gt;
# Break the mirror.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# unmirrorvg &amp;lt;vg_name&amp;gt; &amp;lt;old_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Remove the disk from the volume group.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# reducevg &amp;lt;vg_name&amp;gt; &amp;lt;old_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# [[LVM Remove a Physical Volume|Remove the old physical volume from the system.]]&lt;br /&gt;
# [[LVM Install a New Physical Volume|Install and configure the new physical volume.]]&lt;br /&gt;
# Add the new disk to the volume group.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# extendvg &amp;lt;vg_name&amp;gt; &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Mirror the volume group (syn in background, ensuring a copy on each disk).&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# mirrorvg -S -c2 &amp;lt;vg_name&amp;gt; &amp;lt;new_hdisk#&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Synchronize the volume group.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# syncvg -v &amp;lt;vg_name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp IBM pSeries and AIX Information Center]&lt;br /&gt;
&lt;br /&gt;
[[Category:AIX]]&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=Installing_OpenSSH_Server&amp;diff=1418</id>
		<title>Installing OpenSSH Server</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=Installing_OpenSSH_Server&amp;diff=1418"/>
		<updated>2026-04-02T19:36:08Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* AIX */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== AIX ==&lt;br /&gt;
# Change to the directory containing the openssh.base.server and openssh.base.client filesets.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# smitty install&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:: &amp;lt;tt&amp;gt;Select: &#039;&#039;&#039;Install and Update Software&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:: &amp;lt;tt&amp;gt;Select: &#039;&#039;&#039;Install and Update from ALL Available Software&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:: &amp;lt;tt&amp;gt;Change the entry fields to reflect the following:&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
             INPUT device / directory for software    [.]&lt;br /&gt;
             SOFTWARE to Install                      [Press &amp;lt;F4&amp;gt; and select the openssh.base fileset]&lt;br /&gt;
             ACCEPT new license agreements            [yes]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&amp;lt;li value=&amp;quot;2&amp;quot;&amp;gt;Verify the sshd subsystem is active.&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
:::&amp;lt;tt&amp;gt;&#039;&#039;&#039;# lssrc -s sshd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp IBM pSeries and AIX Information Center]&lt;br /&gt;
&lt;br /&gt;
[[Category:AIX]]&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=Network_-_netstat_%26_ss&amp;diff=1417</id>
		<title>Network - netstat &amp; ss</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=Network_-_netstat_%26_ss&amp;diff=1417"/>
		<updated>2026-04-02T19:23:45Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Caption text&lt;br /&gt;
|-&lt;br /&gt;
! &amp;lt;tt&amp;gt;netstat&amp;lt;/tt&amp;gt; !! &amp;lt;tt&amp;gt;ss&amp;lt;/tt&amp;gt; !! &amp;lt;tt&amp;gt;ip&amp;lt;/tt&amp;gt; !! &amp;lt;tt&amp;gt;description&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;netstat -t&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;ss -t&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;n/a&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;Display TCP sockets&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;netstat -r&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;n/a&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;ip route&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;Display route information&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;netstat -i&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;n/a&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;ip -s link&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;Display link information&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;netstat -a&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;ss&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;n/a&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;Display all connections&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;netstat -antpu&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;ss -antpu&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;n/a&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;Display all connections with corresponding process&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=List_HBAs&amp;diff=1416</id>
		<title>List HBAs</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=List_HBAs&amp;diff=1416"/>
		<updated>2026-04-02T19:19:33Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* Location of defined HBAs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==== Using &amp;lt;tt&amp;gt;systool&amp;lt;/tt&amp;gt; ====&lt;br /&gt;
# To install systool&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# yum install sysfsutils&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Use &amp;lt;tt&amp;gt;&#039;&#039;&#039;systool&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to display all WWPNs&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# systool -c fc_host -v | grep port_name&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Use &amp;lt;tt&amp;gt;&#039;&#039;&#039;systool&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to display attributes of a specific fc_host&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# systool -ac fc_host &amp;lt;host#&amp;gt; -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using &amp;lt;tt&amp;gt;lspci&amp;lt;/tt&amp;gt; ====&lt;br /&gt;
# Use &amp;lt;tt&amp;gt;&#039;&#039;&#039;lspci&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to display available HBAs&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# lspci -nn | grep -i hba&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Location of defined HBAs ====&lt;br /&gt;
# Information regarding the HBAs is located in the following directory&lt;br /&gt;
#:: &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sys/class/fc_host/host#/*&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: View the Port State&lt;br /&gt;
#:: &amp;lt;tt&amp;gt;&#039;&#039;&#039;cat /sys/class/fc_host/host#/port_state&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: View the WWPN&lt;br /&gt;
#:: &amp;lt;tt&amp;gt;&#039;&#039;&#039;cat /sys/class/fc_host/host#/port_name&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#: View the Port Speed&lt;br /&gt;
#:: &amp;lt;tt&amp;gt;&#039;&#039;&#039;cat /sys/class/fc_host/host#/speed&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=List_HBAs&amp;diff=1415</id>
		<title>List HBAs</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=List_HBAs&amp;diff=1415"/>
		<updated>2026-04-02T19:17:40Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* Location of defined HBAs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==== Using &amp;lt;tt&amp;gt;systool&amp;lt;/tt&amp;gt; ====&lt;br /&gt;
# To install systool&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# yum install sysfsutils&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Use &amp;lt;tt&amp;gt;&#039;&#039;&#039;systool&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to display all WWPNs&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# systool -c fc_host -v | grep port_name&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Use &amp;lt;tt&amp;gt;&#039;&#039;&#039;systool&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to display attributes of a specific fc_host&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# systool -ac fc_host &amp;lt;host#&amp;gt; -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using &amp;lt;tt&amp;gt;lspci&amp;lt;/tt&amp;gt; ====&lt;br /&gt;
# Use &amp;lt;tt&amp;gt;&#039;&#039;&#039;lspci&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to display available HBAs&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# lspci -nn | grep -i hba&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Location of defined HBAs ====&lt;br /&gt;
# Information regarding the HBAs is located in the following directory&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sys/class/fc_host/host#/*&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:: View the Port State&lt;br /&gt;
#::: &amp;lt;tt&amp;gt;&#039;&#039;&#039;cat /sys/class/fc_host/host#/port_state&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
##: View the WWPN&lt;br /&gt;
#::: &amp;lt;tt&amp;gt;&#039;&#039;&#039;cat /sys/class/fc_host/host#/port_name&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
##: View the Port Speed&lt;br /&gt;
#::: &amp;lt;tt&amp;gt;&#039;&#039;&#039;cat /sys/class/fc_host/host#/speed&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1414</id>
		<title>RHEL Recover root Password</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1414"/>
		<updated>2026-04-02T19:14:35Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== Red Hat Enterprise Linux ==&lt;br /&gt;
# Reboot OS into emergency mode.&lt;br /&gt;
# During the GRUB2 countdown, Edit the first line by pressing &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;e&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## Locate the line that reads &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;linux&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
### Immediately following the &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;quiet&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt; keyword append &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;rd.break&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Continue the boot process.&lt;br /&gt;
#: Press &amp;lt;tt&amp;gt;&#039;&#039;&#039;Ctrl-x&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to boot.&lt;br /&gt;
# The system will boot into emergency mode and the &amp;lt;tt&amp;gt;&#039;&#039;&#039;switch_root&#039;&#039;&#039;&amp;lt;/tt&amp;gt; prompt will appear.&lt;br /&gt;
# Remount the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem as &amp;lt;tt&amp;gt;&#039;&#039;&#039;rw&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# mount -o remount,rw /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# chroot to the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# chroot /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Create a new password.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# passwd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Update the SELinux Security Context.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# touch /.autorelabel&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; chroot.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit emergency mode.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-working_with_the_grub_2_boot_loader#sec-Changing_and_Resetting_the_Root_Password RHEL7 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings#resetting-the-forgotten-root-password-on-boot_changing-and-resetting-the-root-password-from-the-command-line RHEL8 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings RHEL9 Changing and resetting the root password]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1413</id>
		<title>RHEL Recover root Password</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1413"/>
		<updated>2026-04-02T19:14:02Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* Red Hat Enterprise Linux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== Red Hat Enterprise Linux ==&lt;br /&gt;
# Reboot OS into emergency mode.&lt;br /&gt;
# During the GRUB2 countdown, Edit the first line by pressing &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;e&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## Locate the line that reads &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;linux&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
##: Immediately following the &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;quiet&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt; keyword append &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;rd.break&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Continue the boot process.&lt;br /&gt;
#: Press &amp;lt;tt&amp;gt;&#039;&#039;&#039;Ctrl-x&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to boot.&lt;br /&gt;
# The system will boot into emergency mode and the &amp;lt;tt&amp;gt;&#039;&#039;&#039;switch_root&#039;&#039;&#039;&amp;lt;/tt&amp;gt; prompt will appear.&lt;br /&gt;
# Remount the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem as &amp;lt;tt&amp;gt;&#039;&#039;&#039;rw&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# mount -o remount,rw /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# chroot to the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# chroot /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Create a new password.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# passwd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Update the SELinux Security Context.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# touch /.autorelabel&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; chroot.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit emergency mode.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-working_with_the_grub_2_boot_loader#sec-Changing_and_Resetting_the_Root_Password RHEL7 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings#resetting-the-forgotten-root-password-on-boot_changing-and-resetting-the-root-password-from-the-command-line RHEL8 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings RHEL9 Changing and resetting the root password]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1412</id>
		<title>RHEL Recover root Password</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1412"/>
		<updated>2026-04-02T19:13:48Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* Red Hat Enterprise Linux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== Red Hat Enterprise Linux ==&lt;br /&gt;
# Reboot OS into emergency mode.&lt;br /&gt;
# During the GRUB2 countdown, Edit the first line by pressing &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;e&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## Locate the line that reads &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;linux&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
### Immediately following the &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;quiet&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt; keyword append &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;rd.break&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Continue the boot process.&lt;br /&gt;
#: Press &amp;lt;tt&amp;gt;&#039;&#039;&#039;Ctrl-x&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to boot.&lt;br /&gt;
# The system will boot into emergency mode and the &amp;lt;tt&amp;gt;&#039;&#039;&#039;switch_root&#039;&#039;&#039;&amp;lt;/tt&amp;gt; prompt will appear.&lt;br /&gt;
# Remount the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem as &amp;lt;tt&amp;gt;&#039;&#039;&#039;rw&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# mount -o remount,rw /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# chroot to the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# chroot /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Create a new password.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# passwd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Update the SELinux Security Context.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;touch /.autorelabel&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; chroot.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit emergency mode.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-working_with_the_grub_2_boot_loader#sec-Changing_and_Resetting_the_Root_Password RHEL7 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings#resetting-the-forgotten-root-password-on-boot_changing-and-resetting-the-root-password-from-the-command-line RHEL8 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings RHEL9 Changing and resetting the root password]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1411</id>
		<title>RHEL Recover root Password</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1411"/>
		<updated>2026-04-02T19:13:20Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== Red Hat Enterprise Linux ==&lt;br /&gt;
# Reboot OS into emergency mode.&lt;br /&gt;
# During the GRUB2 countdown, Edit the first line by pressing &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;e&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## Locate the line that reads &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;linux&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
### Immediately following the &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;quiet&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt; keyword append &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;rd.break&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Continue the boot process.&lt;br /&gt;
## Press &amp;lt;tt&amp;gt;&#039;&#039;&#039;Ctrl-x&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to boot.&lt;br /&gt;
# The system will boot into emergency mode and the &amp;lt;tt&amp;gt;&#039;&#039;&#039;switch_root&#039;&#039;&#039;&amp;lt;/tt&amp;gt; prompt will appear.&lt;br /&gt;
# Remount the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem as &amp;lt;tt&amp;gt;&#039;&#039;&#039;rw&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# mount -o remount,rw /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# chroot to the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# chroot /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Create a new password.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# passwd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Update the SELinux Security Context.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;touch /.autorelabel&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; chroot.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit emergency mode.&lt;br /&gt;
#: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-working_with_the_grub_2_boot_loader#sec-Changing_and_Resetting_the_Root_Password RHEL7 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings#resetting-the-forgotten-root-password-on-boot_changing-and-resetting-the-root-password-from-the-command-line RHEL8 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings RHEL9 Changing and resetting the root password]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1410</id>
		<title>RHEL Recover root Password</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1410"/>
		<updated>2026-04-02T19:12:15Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== Red Hat Enterprise Linux ==&lt;br /&gt;
# Reboot OS into emergency mode.&lt;br /&gt;
# During the GRUB2 countdown, Edit the first line by pressing &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;e&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## Locate the line that reads &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;linux&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
### Immediately following the &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;quiet&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt; keyword append &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;rd.break&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Continue the boot process.&lt;br /&gt;
## Press &amp;lt;tt&amp;gt;&#039;&#039;&#039;Ctrl-x&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to boot.&lt;br /&gt;
# The system will boot into emergency mode and the &amp;lt;tt&amp;gt;&#039;&#039;&#039;switch_root&#039;&#039;&#039;&amp;lt;/tt&amp;gt; prompt will appear.&lt;br /&gt;
# Remount the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem as &amp;lt;tt&amp;gt;&#039;&#039;&#039;rw&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# mount -o remount,rw /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# chroot to the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# chroot /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Create a new password.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# passwd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Update the SELinux Security Context.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;touch /.autorelabel&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; chroot.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit emergency mode.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-working_with_the_grub_2_boot_loader#sec-Changing_and_Resetting_the_Root_Password RHEL7 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings#resetting-the-forgotten-root-password-on-boot_changing-and-resetting-the-root-password-from-the-command-line RHEL8 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings RHEL9 Changing and resetting the root password]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1409</id>
		<title>RHEL Recover root Password</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1409"/>
		<updated>2026-04-02T19:11:51Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== Red Hat Enterprise Linux ==&lt;br /&gt;
# Reboot OS into emergency mode.&lt;br /&gt;
# During the GRUB2 countdown, Edit the first line by pressing &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;e&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## Locate the line that reads &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;linux&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
### Immediately following the &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;quiet&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt; keyword append &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;rd.break&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Continue the boot process.&lt;br /&gt;
##: Press &amp;lt;tt&amp;gt;&#039;&#039;&#039;Ctrl-x&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to boot.&lt;br /&gt;
# The system will boot into emergency mode and the &amp;lt;tt&amp;gt;&#039;&#039;&#039;switch_root&#039;&#039;&#039;&amp;lt;/tt&amp;gt; prompt will appear.&lt;br /&gt;
# Remount the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem as &amp;lt;tt&amp;gt;&#039;&#039;&#039;rw&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
##: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# mount -o remount,rw /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# chroot to the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem.&lt;br /&gt;
##: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# chroot /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Create a new password.&lt;br /&gt;
##: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# passwd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Update the SELinux Security Context.&lt;br /&gt;
##: &amp;lt;tt&amp;gt;&#039;&#039;&#039;touch /.autorelabel&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; chroot.&lt;br /&gt;
##: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit emergency mode.&lt;br /&gt;
##: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-working_with_the_grub_2_boot_loader#sec-Changing_and_Resetting_the_Root_Password RHEL7 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings#resetting-the-forgotten-root-password-on-boot_changing-and-resetting-the-root-password-from-the-command-line RHEL8 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings RHEL9 Changing and resetting the root password]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1408</id>
		<title>RHEL Recover root Password</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1408"/>
		<updated>2026-04-02T19:06:10Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== Red Hat Enterprise Linux ==&lt;br /&gt;
# Reboot OS into emergency mode.&lt;br /&gt;
# During the GRUB2 countdown, Edit the first line by pressing &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;e&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## Locate the line that reads &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;linux&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
### Immediately following the &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;quiet&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt; keyword append &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;rd.break&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Continue the boot process.&lt;br /&gt;
## Press &amp;lt;tt&amp;gt;&#039;&#039;&#039;Ctrl-x&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to boot.&lt;br /&gt;
# The system will boot into emergency mode and the &amp;lt;tt&amp;gt;&#039;&#039;&#039;switch_root&#039;&#039;&#039;&amp;lt;/tt&amp;gt; prompt will appear.&lt;br /&gt;
# Remount the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem as &amp;lt;tt&amp;gt;&#039;&#039;&#039;rw&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# mount -o remount,rw /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# chroot to the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# chroot /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Create a new password.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# passwd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Update the SELinux Security Context.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;touch /.autorelabel&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; chroot.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit emergency mode.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-working_with_the_grub_2_boot_loader#sec-Changing_and_Resetting_the_Root_Password RHEL7 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings#resetting-the-forgotten-root-password-on-boot_changing-and-resetting-the-root-password-from-the-command-line RHEL8 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings RHEL9 Changing and resetting the root password]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1407</id>
		<title>RHEL Recover root Password</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1407"/>
		<updated>2026-04-02T18:58:09Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== RHEL7 ==&lt;br /&gt;
# Reboot OS into emergency mode.&lt;br /&gt;
# During the GRUB2 countdown, Edit the first line by pressing &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;e&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## Locate the line that reads &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;linux16&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
### Immediately following the &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;quiet&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt; keyword append &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;rd.break&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Continue the boot process.&lt;br /&gt;
## Press &amp;lt;tt&amp;gt;&#039;&#039;&#039;Ctrl-x&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to boot.&lt;br /&gt;
# The system will boot into emergency mode and the &amp;lt;tt&amp;gt;&#039;&#039;&#039;switch_root&#039;&#039;&#039;&amp;lt;/tt&amp;gt; prompt will appear.&lt;br /&gt;
# Remount the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem as &amp;lt;tt&amp;gt;&#039;&#039;&#039;rw&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# mount -o remount,rw /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# chroot to the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# chroot /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Create a new password.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# passwd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Update the SELinux Security Context.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;touch /.autorelabel&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; chroot.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit emergency mode.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== RHEL8/RHEL9 ==&lt;br /&gt;
# Reboot OS into emergency mode.&lt;br /&gt;
# During the GRUB2 countdown, Edit the first line by pressing &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;e&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## Locate the line that reads &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;linux&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
### Immediately following the &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;quiet&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt; keyword append &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;rd.break&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Continue the boot process.&lt;br /&gt;
## Press &amp;lt;tt&amp;gt;&#039;&#039;&#039;Ctrl-x&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to boot.&lt;br /&gt;
# The system will boot into emergency mode and the &amp;lt;tt&amp;gt;&#039;&#039;&#039;switch_root&#039;&#039;&#039;&amp;lt;/tt&amp;gt; prompt will appear.&lt;br /&gt;
# Remount the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem as &amp;lt;tt&amp;gt;&#039;&#039;&#039;rw&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# mount -o remount,rw /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# chroot to the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# chroot /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Create a new password.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# passwd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Update the SELinux Security Context.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;touch /.autorelabel&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; chroot.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit emergency mode.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-working_with_the_grub_2_boot_loader#sec-Changing_and_Resetting_the_Root_Password RHEL7 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings#resetting-the-forgotten-root-password-on-boot_changing-and-resetting-the-root-password-from-the-command-line RHEL8 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings RHEL9 Changing and resetting the root password]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1406</id>
		<title>RHEL Recover root Password</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=RHEL_Recover_root_Password&amp;diff=1406"/>
		<updated>2026-04-02T18:56:52Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== RHEL7 ==&lt;br /&gt;
# Reboot OS into emergency mode.&lt;br /&gt;
# During the GRUB2 countdown, Edit the first line by pressing &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;e&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## Locate the line that reads &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;linux16&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
### Immediately following the &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;quiet&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt; keyword append &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;rd.break&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Continue the boot process.&lt;br /&gt;
## Press &amp;lt;tt&amp;gt;&#039;&#039;&#039;Ctrl-x&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to boot.&lt;br /&gt;
# The system will boot into emergency mode and the &amp;lt;tt&amp;gt;&#039;&#039;&#039;switch_root&#039;&#039;&#039;&amp;lt;/tt&amp;gt; prompt will appear.&lt;br /&gt;
# Remount the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem as &amp;lt;tt&amp;gt;&#039;&#039;&#039;rw&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# mount -o remount,rw /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# chroot to the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# chroot /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Create a new password.&lt;br /&gt;
:: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# passwd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Update the SELinux Security Context.&lt;br /&gt;
:: &amp;lt;tt&amp;gt;&#039;&#039;&#039;touch /.autorelabel&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; chroot.&lt;br /&gt;
:: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit emergency mode.&lt;br /&gt;
:: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== RHEL8/RHEL9 ==&lt;br /&gt;
# Reboot OS into emergency mode.&lt;br /&gt;
# During the GRUB2 countdown, Edit the first line by pressing &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;e&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## Locate the line that reads &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;linux&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
### Immediately following the &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;quiet&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt; keyword append &amp;lt;tt&amp;gt;&#039;&#039;&#039;&amp;quot;rd.break&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Continue the boot process.&lt;br /&gt;
## Press &amp;lt;tt&amp;gt;&#039;&#039;&#039;Ctrl-x&#039;&#039;&#039;&amp;lt;/tt&amp;gt; to boot.&lt;br /&gt;
# The system will boot into emergency mode and the &amp;lt;tt&amp;gt;&#039;&#039;&#039;switch_root&#039;&#039;&#039;&amp;lt;/tt&amp;gt; prompt will appear.&lt;br /&gt;
# Remount the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem as &amp;lt;tt&amp;gt;&#039;&#039;&#039;rw&#039;&#039;&#039;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# mount -o remount,rw /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# chroot to the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; filesystem.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# chroot /sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Create a new password.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# passwd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Update the SELinux Security Context.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;touch /.autorelabel&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit the &amp;lt;tt&amp;gt;&#039;&#039;&#039;/sysroot&#039;&#039;&#039;&amp;lt;/tt&amp;gt; chroot.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Exit emergency mode.&lt;br /&gt;
## &amp;lt;tt&amp;gt;&#039;&#039;&#039;# exit&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-working_with_the_grub_2_boot_loader#sec-Changing_and_Resetting_the_Root_Password RHEL7 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings#resetting-the-forgotten-root-password-on-boot_changing-and-resetting-the-root-password-from-the-command-line RHEL8 Changing and resetting the root password]&lt;br /&gt;
# [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_basic_system_settings/changing-and-resetting-the-root-password-from-the-command-line_configuring-basic-system-settings RHEL9 Changing and resetting the root password]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=Software&amp;diff=1405</id>
		<title>Software</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=Software&amp;diff=1405"/>
		<updated>2026-04-02T18:50:21Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[Ansible Automation Platform|Ansible Automation Platform]]&lt;br /&gt;
* [[Apache|Apache]]&lt;br /&gt;
* [[Caché|Caché]]&lt;br /&gt;
* [[Commvault|Commvault]]&lt;br /&gt;
* [[DB2|DB2]]&lt;br /&gt;
* [[GIT Cheatsheet|GIT]]&lt;br /&gt;
* [[GlusterFS|GlusterFS]]&lt;br /&gt;
* [[MySQL|MySQL]]&lt;br /&gt;
* [[Nagios|Nagios]]&lt;br /&gt;
* [[OpenSSH|OpenSSH]]&lt;br /&gt;
* [[SSL|SSL]]&lt;br /&gt;
* [[Tivoli|Tivoli]]&lt;br /&gt;
&lt;br /&gt;
[[Category: Software]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1404</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1404"/>
		<updated>2026-04-02T18:50:06Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: Michael Kohler moved page GIT to GIT Cheatsheet without leaving a redirect&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
==== Initial setup git Global Configuration Variables ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Initialize a new git Repository ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;cd into directory to be added to the repository&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git init&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Repository Initialization&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote add origin ssh:&amp;lt;url&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Cloning a Remote Repository ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clone ssh:&amp;lt;url&amp;gt; &amp;lt;src/.&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Creating Branches ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Merging Branches ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git merge &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Deleting a Branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -d &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin --delete &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Update a file ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Commiting &amp;amp; Pushing Changes ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove files from repository keep local ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git rm --cached &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== List files in repository ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git ls-files&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Revert to previous version (pre commit) ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;filename&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Fix commit message ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Add a file as a part of previous commit ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git log&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --soft &amp;lt;hash of correct commit&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --hard &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove Untracked Directories and Files ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clean -df&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1403</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1403"/>
		<updated>2026-04-02T18:49:41Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
==== Initial setup git Global Configuration Variables ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Initialize a new git Repository ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;cd into directory to be added to the repository&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git init&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Repository Initialization&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote add origin ssh:&amp;lt;url&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Cloning a Remote Repository ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clone ssh:&amp;lt;url&amp;gt; &amp;lt;src/.&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Creating Branches ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Merging Branches ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git merge &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Deleting a Branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -d &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin --delete &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Update a file ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Commiting &amp;amp; Pushing Changes ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove files from repository keep local ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git rm --cached &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== List files in repository ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git ls-files&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Revert to previous version (pre commit) ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;filename&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Fix commit message ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Add a file as a part of previous commit ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git log&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --soft &amp;lt;hash of correct commit&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --hard &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove Untracked Directories and Files ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clean -df&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1402</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1402"/>
		<updated>2026-04-02T18:48:57Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* GIT Cheatsheet */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
==== Initial setup git Global Configuration Variables ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Initialize a new git Repository ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;cd into directory to be added to the repository&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git init&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Repository Initialization&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote add origin ssh:&amp;lt;url&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Cloning a Remote Repository ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clone ssh:&amp;lt;url&amp;gt; &amp;lt;src/.&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Creating Branches ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Merging Branches ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git merge &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Deleting a Branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -d &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin --delete &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Update a file ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Commiting &amp;amp; Pushing Changes ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove files from repository keep local ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git rm --cached &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== List files in repository ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git ls-files&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Revert to previous version (pre commit) ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;filename&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Fix commit message ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Add a file as a part of previous commit ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move commits to another branch&lt;br /&gt;
        Get Hash&lt;br /&gt;
                git log&lt;br /&gt;
&lt;br /&gt;
        git checkout &amp;lt;branch&amp;gt;&lt;br /&gt;
        git cherry-pick &amp;lt;hash&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git log&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --soft &amp;lt;hash of correct commit&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --hard &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove Untracked Directories and Files ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clean -df&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1401</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1401"/>
		<updated>2026-04-02T18:48:42Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
==== Initial setup git Global Configuration Variables ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Initialize a new git Repository ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;cd into directory to be added to the repository&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git init&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Repository Initialization&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote add origin ssh:&amp;lt;url&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Cloning a Remote Repository ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clone ssh:&amp;lt;url&amp;gt; &amp;lt;src/.&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Creating Branches ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Merging Branches&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git merge &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Deleting a Branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -d &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin --delete &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Update a file ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Commiting &amp;amp; Pushing Changes ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove files from repository keep local ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git rm --cached &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== List files in repository ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git ls-files&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Revert to previous version (pre commit) ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;filename&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Fix commit message ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Add a file as a part of previous commit ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move commits to another branch&lt;br /&gt;
        Get Hash&lt;br /&gt;
                git log&lt;br /&gt;
&lt;br /&gt;
        git checkout &amp;lt;branch&amp;gt;&lt;br /&gt;
        git cherry-pick &amp;lt;hash&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git log&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --soft &amp;lt;hash of correct commit&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --hard &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remove Untracked Directories and Files ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clean -df&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1400</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1400"/>
		<updated>2026-04-02T18:46:02Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
==== Initial setup git Global Configuration Variables ====&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Initialize a new git Repository ====&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;cd into directory to be added to the repository&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git init&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Repository Initialization&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote add origin ssh:&amp;lt;url&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Cloning a Remote Repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clone ssh:&amp;lt;url&amp;gt; &amp;lt;src/.&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Creating Branches&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Merging Branches&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git merge &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Deleting a Branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -d &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin --delete &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Update a file&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Commiting &amp;amp; Pushing Changes&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove files from repository keep local&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git rm --cached &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* List files in repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git ls-files&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Revert to previous version (pre commit)&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;filename&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Fix commit message&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Add a file as a part of previous commit&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move commits to another branch&lt;br /&gt;
        Get Hash&lt;br /&gt;
                git log&lt;br /&gt;
&lt;br /&gt;
        git checkout &amp;lt;branch&amp;gt;&lt;br /&gt;
        git cherry-pick &amp;lt;hash&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git log&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --soft &amp;lt;hash of correct commit&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --hard &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove Untracked Directories and Files&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clean -df&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1399</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1399"/>
		<updated>2026-04-02T18:45:39Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
==== Initial setup git Global Configuration Variables ====&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Initialize a new git Repository ====&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;cd into directory to be added to the repository&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git init&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Repository Initialization&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote add origin ssh:&amp;lt;url&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Cloning a Remote Repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clone ssh:&amp;lt;url&amp;gt; &amp;lt;src/.&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Creating Branches&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Merging Branches&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git merge &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Deleting a Branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -d &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin --delete &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Update a file&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Commiting &amp;amp; Pushing Changes&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove files from repository keep local&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git rm --cached &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* List files in repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git ls-files&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Revert to previous version (pre commit)&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;filename&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Fix commit message&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Add a file as a part of previous commit&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move commits to another branch&lt;br /&gt;
        Get Hash&lt;br /&gt;
                git log&lt;br /&gt;
&lt;br /&gt;
        git checkout &amp;lt;branch&amp;gt;&lt;br /&gt;
        git cherry-pick &amp;lt;hash&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git log&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --soft &amp;lt;hash of correct commit&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --hard &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove Untracked Directories and Files&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clean -df&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1398</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1398"/>
		<updated>2026-04-02T18:45:17Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
** Initial setup git Global Configuration Variables&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Initialize a new git Repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;cd into directory to be added to the repository&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git init&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Repository Initialization&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote add origin ssh:&amp;lt;url&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Cloning a Remote Repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clone ssh:&amp;lt;url&amp;gt; &amp;lt;src/.&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Creating Branches&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Merging Branches&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git merge &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Deleting a Branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -d &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin --delete &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Update a file&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Commiting &amp;amp; Pushing Changes&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove files from repository keep local&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git rm --cached &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* List files in repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git ls-files&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Revert to previous version (pre commit)&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;filename&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Fix commit message&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Add a file as a part of previous commit&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move commits to another branch&lt;br /&gt;
        Get Hash&lt;br /&gt;
                git log&lt;br /&gt;
&lt;br /&gt;
        git checkout &amp;lt;branch&amp;gt;&lt;br /&gt;
        git cherry-pick &amp;lt;hash&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git log&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --soft &amp;lt;hash of correct commit&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --hard &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove Untracked Directories and Files&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clean -df&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1397</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1397"/>
		<updated>2026-04-02T18:44:53Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
* Initial setup git Global Configuration Variables&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Initialize a new git Repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;cd into directory to be added to the repository&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git init&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Repository Initialization&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote add origin ssh:&amp;lt;url&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Cloning a Remote Repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clone ssh:&amp;lt;url&amp;gt; &amp;lt;src/.&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Creating Branches&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Merging Branches&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git merge &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Deleting a Branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -d &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin --delete &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Update a file&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Commiting &amp;amp; Pushing Changes&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove files from repository keep local&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git rm --cached &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* List files in repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git ls-files&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Revert to previous version (pre commit)&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;filename&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Fix commit message&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Add a file as a part of previous commit&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move commits to another branch&lt;br /&gt;
        Get Hash&lt;br /&gt;
                git log&lt;br /&gt;
&lt;br /&gt;
        git checkout &amp;lt;branch&amp;gt;&lt;br /&gt;
        git cherry-pick &amp;lt;hash&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git log&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --soft &amp;lt;hash of correct commit&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;original branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git reset --hard &amp;lt;hash&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove Untracked Directories and Files&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clean -df&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1396</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1396"/>
		<updated>2026-04-02T18:42:20Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
* Initial setup git Global Configuration Variables&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Initialize a new git Repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;cd into directory to be added to the repository&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git init&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Repository Initialization&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote add origin ssh:&amp;lt;url&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Cloning a Remote Repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clone ssh:&amp;lt;url&amp;gt; &amp;lt;src/.&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git remote -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Creating Branches&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Merging Branches&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git merge &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Deleting a Branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -d &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin --delete &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Update a file&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Commiting &amp;amp; Pushing Changes&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove files from repository keep local&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git rm --cached &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* List files in repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git ls-files&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Revert to previous version (pre commit)&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;filename&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Fix commit message&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Add a file as a part of previous commit&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move commits to another branch&lt;br /&gt;
        Get Hash&lt;br /&gt;
                git log&lt;br /&gt;
&lt;br /&gt;
        git checkout &amp;lt;branch&amp;gt;&lt;br /&gt;
        git cherry-pick &amp;lt;hash&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git log&lt;br /&gt;
                git reset --soft &amp;lt;hash of correct commit&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset --hard &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
* Remove Untracked Directories and Files&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clean -df&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1395</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1395"/>
		<updated>2026-04-02T18:41:35Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
* Initial setup git Global Configuration Variables&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Initialize a new git Repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ cd into directory to be added to the repository&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git init&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git commit -m &amp;quot;Repository Initialization&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git remote add origin ssh:&amp;lt;url&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Cloning a Remote Repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git clone ssh:&amp;lt;url&amp;gt; &amp;lt;src/.&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git remote -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Creating Branches&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git checkout &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Merging Branches&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git merge &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Deleting a Branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -d &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin --delete &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Update a file&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Commiting &amp;amp; Pushing Changes&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remove files from repository keep local&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git rm --cached &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* List files in repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git ls-files&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Revert to previous version (pre commit)&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;filename&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Fix commit message&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Add a file as a part of previous commit&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move commits to another branch&lt;br /&gt;
        Get Hash&lt;br /&gt;
                git log&lt;br /&gt;
&lt;br /&gt;
        git checkout &amp;lt;branch&amp;gt;&lt;br /&gt;
        git cherry-pick &amp;lt;hash&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git log&lt;br /&gt;
                git reset --soft &amp;lt;hash of correct commit&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset --hard &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
* Remove Untracked Directories and Files&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git clean -df&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1394</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1394"/>
		<updated>2026-04-02T18:40:11Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* GIT Cheatsheet */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
* Initial setup git Global Configuration Variables&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Initialize a new git Repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ cd into directory to be added to the repository&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git init&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git commit -m &amp;quot;Repository Initialization&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git remote add origin ssh:&amp;lt;url&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Cloning a Remote Repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git clone ssh:&amp;lt;url&amp;gt; &amp;lt;src/.&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git remote -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Creating Branches&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git checkout &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Merging Branches&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git merge &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Deleting a Branch&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch --merged&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -d &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin --delete &amp;lt;branch to delete&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Update a file&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Commiting &amp;amp; Pushing Changes&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git pull origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push origin &amp;lt;branch&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Remove files from repository keep local&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git rm --cached &amp;lt;file&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit -m &amp;quot;Description of changes&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git push&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*List files in repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git ls-files&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Revert to previous version (pre commit)&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git checkout &amp;lt;filename&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git status&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git diff&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Fix commit message&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add a file as a part of previous commit&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;git commit --ammend&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Move commits to another branch&lt;br /&gt;
        Get Hash&lt;br /&gt;
                git log&lt;br /&gt;
&lt;br /&gt;
        git checkout &amp;lt;branch&amp;gt;&lt;br /&gt;
        git cherry-pick &amp;lt;hash&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git log&lt;br /&gt;
                git reset --soft &amp;lt;hash of correct commit&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset --hard &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
Remove Untracked Directories and Files&lt;br /&gt;
        git clean -df&lt;br /&gt;
        git status&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1393</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1393"/>
		<updated>2026-04-02T18:37:28Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* GIT Cheatsheet */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
* Initial setup git Global Configuration Variables&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Initialize a new git Repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ cd into directory to be added to the repository&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git init&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git commit -m &amp;quot;Repository Initialization&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git remote add origin ssh:&amp;lt;url&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Cloning a Remote Repository&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git clone ssh:&amp;lt;url&amp;gt; &amp;lt;src/.&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git remote -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Creating Branches&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git checkout &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Merging Branches&lt;br /&gt;
        git checkout master&lt;br /&gt;
        git pull origin master&lt;br /&gt;
        git branch --merged&lt;br /&gt;
        git merge &amp;lt;branch&amp;gt;&lt;br /&gt;
        git push origin master&lt;br /&gt;
&lt;br /&gt;
Deleting a Branch&lt;br /&gt;
        git branch --merged&lt;br /&gt;
        git branch -d &amp;lt;branch to delete&amp;gt;&lt;br /&gt;
        git branch -a&lt;br /&gt;
        git push origin --delete &amp;lt;branch to delete&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Update a file&lt;br /&gt;
        git add &amp;lt;file&amp;gt;&lt;br /&gt;
        git commit -m &amp;quot;Description of changes&amp;quot;&lt;br /&gt;
        git push&lt;br /&gt;
&lt;br /&gt;
Commiting &amp;amp; Pushing Changes&lt;br /&gt;
        git diff&lt;br /&gt;
        git status&lt;br /&gt;
        git add -A&lt;br /&gt;
        git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&lt;br /&gt;
        git pull origin &amp;lt;branch&amp;gt;&lt;br /&gt;
        git push origin &amp;lt;branch&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remove files from repository keep local&lt;br /&gt;
        git rm --cached &amp;lt;file&amp;gt;&lt;br /&gt;
        git commit -m &amp;quot;Description of changes&amp;quot;&lt;br /&gt;
        git push&lt;br /&gt;
&lt;br /&gt;
List files in repository&lt;br /&gt;
        git ls-files&lt;br /&gt;
&lt;br /&gt;
Revert to previous version (pre commit)&lt;br /&gt;
        git checkout &amp;lt;filename&amp;gt;&lt;br /&gt;
        git status&lt;br /&gt;
        git diff&lt;br /&gt;
&lt;br /&gt;
Fix commit message&lt;br /&gt;
        git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add a file as a part of previous commit&lt;br /&gt;
        git commit --ammend&lt;br /&gt;
&lt;br /&gt;
Move commits to another branch&lt;br /&gt;
        Get Hash&lt;br /&gt;
                git log&lt;br /&gt;
&lt;br /&gt;
        git checkout &amp;lt;branch&amp;gt;&lt;br /&gt;
        git cherry-pick &amp;lt;hash&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git log&lt;br /&gt;
                git reset --soft &amp;lt;hash of correct commit&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset --hard &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
Remove Untracked Directories and Files&lt;br /&gt;
        git clean -df&lt;br /&gt;
        git status&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1392</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1392"/>
		<updated>2026-04-02T18:35:10Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* GIT Cheatsheet */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
* Initial setup git Global Configuration Variables&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
*:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Initialize a new git Repository&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ cd into directory to be added to the repository&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git init&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git commit -m &amp;quot;Repository Initialization&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git remote add origin ssh:&amp;lt;url&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Cloning a Remote Repository&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git clone ssh:&amp;lt;url&amp;gt; &amp;lt;src/.&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git remote -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Creating Branches&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git checkout &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Merging Branches&lt;br /&gt;
        git checkout master&lt;br /&gt;
        git pull origin master&lt;br /&gt;
        git branch --merged&lt;br /&gt;
        git merge &amp;lt;branch&amp;gt;&lt;br /&gt;
        git push origin master&lt;br /&gt;
&lt;br /&gt;
Deleting a Branch&lt;br /&gt;
        git branch --merged&lt;br /&gt;
        git branch -d &amp;lt;branch to delete&amp;gt;&lt;br /&gt;
        git branch -a&lt;br /&gt;
        git push origin --delete &amp;lt;branch to delete&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Update a file&lt;br /&gt;
        git add &amp;lt;file&amp;gt;&lt;br /&gt;
        git commit -m &amp;quot;Description of changes&amp;quot;&lt;br /&gt;
        git push&lt;br /&gt;
&lt;br /&gt;
Commiting &amp;amp; Pushing Changes&lt;br /&gt;
        git diff&lt;br /&gt;
        git status&lt;br /&gt;
        git add -A&lt;br /&gt;
        git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&lt;br /&gt;
        git pull origin &amp;lt;branch&amp;gt;&lt;br /&gt;
        git push origin &amp;lt;branch&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remove files from repository keep local&lt;br /&gt;
        git rm --cached &amp;lt;file&amp;gt;&lt;br /&gt;
        git commit -m &amp;quot;Description of changes&amp;quot;&lt;br /&gt;
        git push&lt;br /&gt;
&lt;br /&gt;
List files in repository&lt;br /&gt;
        git ls-files&lt;br /&gt;
&lt;br /&gt;
Revert to previous version (pre commit)&lt;br /&gt;
        git checkout &amp;lt;filename&amp;gt;&lt;br /&gt;
        git status&lt;br /&gt;
        git diff&lt;br /&gt;
&lt;br /&gt;
Fix commit message&lt;br /&gt;
        git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add a file as a part of previous commit&lt;br /&gt;
        git commit --ammend&lt;br /&gt;
&lt;br /&gt;
Move commits to another branch&lt;br /&gt;
        Get Hash&lt;br /&gt;
                git log&lt;br /&gt;
&lt;br /&gt;
        git checkout &amp;lt;branch&amp;gt;&lt;br /&gt;
        git cherry-pick &amp;lt;hash&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git log&lt;br /&gt;
                git reset --soft &amp;lt;hash of correct commit&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset --hard &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
Remove Untracked Directories and Files&lt;br /&gt;
        git clean -df&lt;br /&gt;
        git status&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1391</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1391"/>
		<updated>2026-04-02T18:34:50Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* GIT Cheatsheet */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
* Initial setup git Global Configuration Variables&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Initialize a new git Repository&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ cd into directory to be added to the repository&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git init&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git commit -m &amp;quot;Repository Initialization&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git remote add origin ssh:&amp;lt;url&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Cloning a Remote Repository&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git clone ssh:&amp;lt;url&amp;gt; &amp;lt;src/.&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git remote -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Creating Branches&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git checkout &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Merging Branches&lt;br /&gt;
        git checkout master&lt;br /&gt;
        git pull origin master&lt;br /&gt;
        git branch --merged&lt;br /&gt;
        git merge &amp;lt;branch&amp;gt;&lt;br /&gt;
        git push origin master&lt;br /&gt;
&lt;br /&gt;
Deleting a Branch&lt;br /&gt;
        git branch --merged&lt;br /&gt;
        git branch -d &amp;lt;branch to delete&amp;gt;&lt;br /&gt;
        git branch -a&lt;br /&gt;
        git push origin --delete &amp;lt;branch to delete&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Update a file&lt;br /&gt;
        git add &amp;lt;file&amp;gt;&lt;br /&gt;
        git commit -m &amp;quot;Description of changes&amp;quot;&lt;br /&gt;
        git push&lt;br /&gt;
&lt;br /&gt;
Commiting &amp;amp; Pushing Changes&lt;br /&gt;
        git diff&lt;br /&gt;
        git status&lt;br /&gt;
        git add -A&lt;br /&gt;
        git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&lt;br /&gt;
        git pull origin &amp;lt;branch&amp;gt;&lt;br /&gt;
        git push origin &amp;lt;branch&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remove files from repository keep local&lt;br /&gt;
        git rm --cached &amp;lt;file&amp;gt;&lt;br /&gt;
        git commit -m &amp;quot;Description of changes&amp;quot;&lt;br /&gt;
        git push&lt;br /&gt;
&lt;br /&gt;
List files in repository&lt;br /&gt;
        git ls-files&lt;br /&gt;
&lt;br /&gt;
Revert to previous version (pre commit)&lt;br /&gt;
        git checkout &amp;lt;filename&amp;gt;&lt;br /&gt;
        git status&lt;br /&gt;
        git diff&lt;br /&gt;
&lt;br /&gt;
Fix commit message&lt;br /&gt;
        git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add a file as a part of previous commit&lt;br /&gt;
        git commit --ammend&lt;br /&gt;
&lt;br /&gt;
Move commits to another branch&lt;br /&gt;
        Get Hash&lt;br /&gt;
                git log&lt;br /&gt;
&lt;br /&gt;
        git checkout &amp;lt;branch&amp;gt;&lt;br /&gt;
        git cherry-pick &amp;lt;hash&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git log&lt;br /&gt;
                git reset --soft &amp;lt;hash of correct commit&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset --hard &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
Remove Untracked Directories and Files&lt;br /&gt;
        git clean -df&lt;br /&gt;
        git status&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1390</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1390"/>
		<updated>2026-04-02T18:34:18Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* GIT Cheatsheet */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
# Initial setup git Global Configuration Variables&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Initialize a new git Repository&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ cd into directory to be added to the repository&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git init&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git add -A&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git commit -m &amp;quot;Repository Initialization&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git remote add origin ssh:&amp;lt;url&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git push origin master&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Cloning a Remote Repository&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git clone ssh:&amp;lt;url&amp;gt; &amp;lt;src/.&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git remote -v&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch -a&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Creating Branches&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git checkout &amp;lt;branch name&amp;gt;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git branch&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Merging Branches&lt;br /&gt;
        git checkout master&lt;br /&gt;
        git pull origin master&lt;br /&gt;
        git branch --merged&lt;br /&gt;
        git merge &amp;lt;branch&amp;gt;&lt;br /&gt;
        git push origin master&lt;br /&gt;
&lt;br /&gt;
Deleting a Branch&lt;br /&gt;
        git branch --merged&lt;br /&gt;
        git branch -d &amp;lt;branch to delete&amp;gt;&lt;br /&gt;
        git branch -a&lt;br /&gt;
        git push origin --delete &amp;lt;branch to delete&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Update a file&lt;br /&gt;
        git add &amp;lt;file&amp;gt;&lt;br /&gt;
        git commit -m &amp;quot;Description of changes&amp;quot;&lt;br /&gt;
        git push&lt;br /&gt;
&lt;br /&gt;
Commiting &amp;amp; Pushing Changes&lt;br /&gt;
        git diff&lt;br /&gt;
        git status&lt;br /&gt;
        git add -A&lt;br /&gt;
        git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&lt;br /&gt;
        git pull origin &amp;lt;branch&amp;gt;&lt;br /&gt;
        git push origin &amp;lt;branch&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remove files from repository keep local&lt;br /&gt;
        git rm --cached &amp;lt;file&amp;gt;&lt;br /&gt;
        git commit -m &amp;quot;Description of changes&amp;quot;&lt;br /&gt;
        git push&lt;br /&gt;
&lt;br /&gt;
List files in repository&lt;br /&gt;
        git ls-files&lt;br /&gt;
&lt;br /&gt;
Revert to previous version (pre commit)&lt;br /&gt;
        git checkout &amp;lt;filename&amp;gt;&lt;br /&gt;
        git status&lt;br /&gt;
        git diff&lt;br /&gt;
&lt;br /&gt;
Fix commit message&lt;br /&gt;
        git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add a file as a part of previous commit&lt;br /&gt;
        git commit --ammend&lt;br /&gt;
&lt;br /&gt;
Move commits to another branch&lt;br /&gt;
        Get Hash&lt;br /&gt;
                git log&lt;br /&gt;
&lt;br /&gt;
        git checkout &amp;lt;branch&amp;gt;&lt;br /&gt;
        git cherry-pick &amp;lt;hash&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git log&lt;br /&gt;
                git reset --soft &amp;lt;hash of correct commit&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset --hard &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
Remove Untracked Directories and Files&lt;br /&gt;
        git clean -df&lt;br /&gt;
        git status&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1389</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1389"/>
		<updated>2026-04-02T18:32:21Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: /* GIT Cheatsheet */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
# Initial setup git Global Configuration Variables&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$ git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Initialize a new git Repository&lt;br /&gt;
        cd into directory to be added to the repository&lt;br /&gt;
        git init&lt;br /&gt;
        git add -A&lt;br /&gt;
        git commit -m &amp;quot;Repository Initialization&amp;quot;&lt;br /&gt;
        git remote add origin ssh://git-codecommit.us-east-2.amazonaws.com/v1/repos/outlands&lt;br /&gt;
        git push origin master&lt;br /&gt;
&lt;br /&gt;
Cloning a Remote Repository&lt;br /&gt;
        git clone ssh://git-codecommit.us-east-2.amazonaws.com/v1/repos/outlands-lib src/.&lt;br /&gt;
        git remote -v&lt;br /&gt;
        git branch -a&lt;br /&gt;
&lt;br /&gt;
Creating Branches&lt;br /&gt;
        git branch &amp;lt;branch name&amp;gt;&lt;br /&gt;
        git checkout &amp;lt;branch name&amp;gt;&lt;br /&gt;
        git branch&lt;br /&gt;
&lt;br /&gt;
Merging Branches&lt;br /&gt;
        git checkout master&lt;br /&gt;
        git pull origin master&lt;br /&gt;
        git branch --merged&lt;br /&gt;
        git merge &amp;lt;branch&amp;gt;&lt;br /&gt;
        git push origin master&lt;br /&gt;
&lt;br /&gt;
Deleting a Branch&lt;br /&gt;
        git branch --merged&lt;br /&gt;
        git branch -d &amp;lt;branch to delete&amp;gt;&lt;br /&gt;
        git branch -a&lt;br /&gt;
        git push origin --delete &amp;lt;branch to delete&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Update a file&lt;br /&gt;
        git add &amp;lt;file&amp;gt;&lt;br /&gt;
        git commit -m &amp;quot;Description of changes&amp;quot;&lt;br /&gt;
        git push&lt;br /&gt;
&lt;br /&gt;
Commiting &amp;amp; Pushing Changes&lt;br /&gt;
        git diff&lt;br /&gt;
        git status&lt;br /&gt;
        git add -A&lt;br /&gt;
        git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&lt;br /&gt;
        git pull origin &amp;lt;branch&amp;gt;&lt;br /&gt;
        git push origin &amp;lt;branch&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remove files from repository keep local&lt;br /&gt;
        git rm --cached &amp;lt;file&amp;gt;&lt;br /&gt;
        git commit -m &amp;quot;Description of changes&amp;quot;&lt;br /&gt;
        git push&lt;br /&gt;
&lt;br /&gt;
List files in repository&lt;br /&gt;
        git ls-files&lt;br /&gt;
&lt;br /&gt;
Revert to previous version (pre commit)&lt;br /&gt;
        git checkout &amp;lt;filename&amp;gt;&lt;br /&gt;
        git status&lt;br /&gt;
        git diff&lt;br /&gt;
&lt;br /&gt;
Fix commit message&lt;br /&gt;
        git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add a file as a part of previous commit&lt;br /&gt;
        git commit --ammend&lt;br /&gt;
&lt;br /&gt;
Move commits to another branch&lt;br /&gt;
        Get Hash&lt;br /&gt;
                git log&lt;br /&gt;
&lt;br /&gt;
        git checkout &amp;lt;branch&amp;gt;&lt;br /&gt;
        git cherry-pick &amp;lt;hash&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git log&lt;br /&gt;
                git reset --soft &amp;lt;hash of correct commit&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset --hard &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
Remove Untracked Directories and Files&lt;br /&gt;
        git clean -df&lt;br /&gt;
        git status&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1388</id>
		<title>GIT Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=GIT_Cheatsheet&amp;diff=1388"/>
		<updated>2026-04-02T18:31:17Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: Created page with &amp;quot;__FORCETOC__ == GIT Cheatsheet == # Initial setup git Global Configuration Variables #:&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;$These configuration variables are stored in ~/.gitconfig&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; #:&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;$git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; #:&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;$git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; #:&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;$git config --list&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt;  Initialize a new git Repository         cd into directory to be added to the repository         git init         git add -A         git commit -m &amp;quot;Repository Init...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
== GIT Cheatsheet ==&lt;br /&gt;
# Initial setup git Global Configuration Variables&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$These configuration variables are stored in ~/.gitconfig&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$git config --global user.name &amp;quot;&amp;lt;user&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$git config --global user.email &amp;quot;&amp;lt;email&amp;gt;&amp;quot;&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
#:&amp;lt;tt&amp;gt;&#039;&#039;&#039;$git config --list&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Initialize a new git Repository&lt;br /&gt;
        cd into directory to be added to the repository&lt;br /&gt;
        git init&lt;br /&gt;
        git add -A&lt;br /&gt;
        git commit -m &amp;quot;Repository Initialization&amp;quot;&lt;br /&gt;
        git remote add origin ssh://git-codecommit.us-east-2.amazonaws.com/v1/repos/outlands&lt;br /&gt;
        git push origin master&lt;br /&gt;
&lt;br /&gt;
Cloning a Remote Repository&lt;br /&gt;
        git clone ssh://git-codecommit.us-east-2.amazonaws.com/v1/repos/outlands-lib src/.&lt;br /&gt;
        git remote -v&lt;br /&gt;
        git branch -a&lt;br /&gt;
&lt;br /&gt;
Creating Branches&lt;br /&gt;
        git branch &amp;lt;branch name&amp;gt;&lt;br /&gt;
        git checkout &amp;lt;branch name&amp;gt;&lt;br /&gt;
        git branch&lt;br /&gt;
&lt;br /&gt;
Merging Branches&lt;br /&gt;
        git checkout master&lt;br /&gt;
        git pull origin master&lt;br /&gt;
        git branch --merged&lt;br /&gt;
        git merge &amp;lt;branch&amp;gt;&lt;br /&gt;
        git push origin master&lt;br /&gt;
&lt;br /&gt;
Deleting a Branch&lt;br /&gt;
        git branch --merged&lt;br /&gt;
        git branch -d &amp;lt;branch to delete&amp;gt;&lt;br /&gt;
        git branch -a&lt;br /&gt;
        git push origin --delete &amp;lt;branch to delete&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Update a file&lt;br /&gt;
        git add &amp;lt;file&amp;gt;&lt;br /&gt;
        git commit -m &amp;quot;Description of changes&amp;quot;&lt;br /&gt;
        git push&lt;br /&gt;
&lt;br /&gt;
Commiting &amp;amp; Pushing Changes&lt;br /&gt;
        git diff&lt;br /&gt;
        git status&lt;br /&gt;
        git add -A&lt;br /&gt;
        git commit -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&lt;br /&gt;
        git pull origin &amp;lt;branch&amp;gt;&lt;br /&gt;
        git push origin &amp;lt;branch&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remove files from repository keep local&lt;br /&gt;
        git rm --cached &amp;lt;file&amp;gt;&lt;br /&gt;
        git commit -m &amp;quot;Description of changes&amp;quot;&lt;br /&gt;
        git push&lt;br /&gt;
&lt;br /&gt;
List files in repository&lt;br /&gt;
        git ls-files&lt;br /&gt;
&lt;br /&gt;
Revert to previous version (pre commit)&lt;br /&gt;
        git checkout &amp;lt;filename&amp;gt;&lt;br /&gt;
        git status&lt;br /&gt;
        git diff&lt;br /&gt;
&lt;br /&gt;
Fix commit message&lt;br /&gt;
        git commit --ammend -m &amp;quot;&amp;lt;message&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add a file as a part of previous commit&lt;br /&gt;
        git commit --ammend&lt;br /&gt;
&lt;br /&gt;
Move commits to another branch&lt;br /&gt;
        Get Hash&lt;br /&gt;
                git log&lt;br /&gt;
&lt;br /&gt;
        git checkout &amp;lt;branch&amp;gt;&lt;br /&gt;
        git cherry-pick &amp;lt;hash&amp;gt;&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (soft reset), removing commits but keeping staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git log&lt;br /&gt;
                git reset --soft &amp;lt;hash of correct commit&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (mixed reset), removing commits and files in staging directory in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
        Remove the commit from the original branch (hard reset), removing commits and tracked files entirely in branch&lt;br /&gt;
                git checkout &amp;lt;original branch&amp;gt;&lt;br /&gt;
                git reset --hard &amp;lt;hash&amp;gt;&lt;br /&gt;
                git status&lt;br /&gt;
&lt;br /&gt;
Remove Untracked Directories and Files&lt;br /&gt;
        git clean -df&lt;br /&gt;
        git status&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=Software&amp;diff=1387</id>
		<title>Software</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=Software&amp;diff=1387"/>
		<updated>2026-04-02T18:28:39Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[Ansible Automation Platform|Ansible Automation Platform]]&lt;br /&gt;
* [[Apache|Apache]]&lt;br /&gt;
* [[Caché|Caché]]&lt;br /&gt;
* [[Commvault|Commvault]]&lt;br /&gt;
* [[DB2|DB2]]&lt;br /&gt;
* [[GIT|GIT]]&lt;br /&gt;
* [[GlusterFS|GlusterFS]]&lt;br /&gt;
* [[MySQL|MySQL]]&lt;br /&gt;
* [[Nagios|Nagios]]&lt;br /&gt;
* [[OpenSSH|OpenSSH]]&lt;br /&gt;
* [[SSL|SSL]]&lt;br /&gt;
* [[Tivoli|Tivoli]]&lt;br /&gt;
&lt;br /&gt;
[[Category: Software]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=Linux_Lets_Encrypt_-_Certbot&amp;diff=1386</id>
		<title>Linux Lets Encrypt - Certbot</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=Linux_Lets_Encrypt_-_Certbot&amp;diff=1386"/>
		<updated>2026-04-02T18:27:56Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Apache ==&lt;br /&gt;
==== RHEL9+ ====&lt;br /&gt;
Install packages.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# dnf install letsencrypt python3-certbot-apache&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Download and register certificate.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# certbot -d &amp;lt;url&amp;gt; -d &amp;lt;url1&amp;gt; -d &amp;lt;url3...&amp;gt; --apache&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Restart webserver.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# systemctl restart httpd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Nginx ==&lt;br /&gt;
==== RHEL9+ ====&lt;br /&gt;
Install packages.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# dnf install letsencrypt python3-certbot-nginx&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Download and register certificate.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# certbot -d &amp;lt;url&amp;gt; -d &amp;lt;url1&amp;gt; -d &amp;lt;url3...&amp;gt; --nginx&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Restart webserver.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# systemctl restart nginx&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reading ==&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=Linux_Lets_Encrypt_-_Certbot&amp;diff=1385</id>
		<title>Linux Lets Encrypt - Certbot</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=Linux_Lets_Encrypt_-_Certbot&amp;diff=1385"/>
		<updated>2026-04-02T18:17:18Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Apache ==&lt;br /&gt;
==== RHEL9+ ====&lt;br /&gt;
Install packages.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# dnf install letsencrypt python3-certbot-apache&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Download and register certificate.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# certbot -d &amp;lt;url&amp;gt; -d &amp;lt;url1&amp;gt; -d &amp;lt;url3...&amp;gt; --apache&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Restart webserver.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# systemctl restart httpd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Nginx ==&lt;br /&gt;
==== RHEL9+ ====&lt;br /&gt;
Install packages.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# dnf install letsencrypt python3-certbot-nginx&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Download and register certificate.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# certbot -d &amp;lt;url&amp;gt; -d &amp;lt;url1&amp;gt; -d &amp;lt;url3...&amp;gt; --nginx&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Restart webserver.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# systemctl restart nginx&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=Linux_Lets_Encrypt_-_Certbot&amp;diff=1384</id>
		<title>Linux Lets Encrypt - Certbot</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=Linux_Lets_Encrypt_-_Certbot&amp;diff=1384"/>
		<updated>2026-04-02T18:16:58Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Apache ==&lt;br /&gt;
==== RHEL9+ ====&lt;br /&gt;
Install packages.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# dnf install letsencrypt python3-certbot-apache&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Download and register certificate.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# certbot -d &amp;lt;url&amp;gt; -d &amp;lt;url1&amp;gt; -d &amp;lt;url3...&amp;gt; --apache&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Restart webserver.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# systemctl restart httpd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Debian ====&lt;br /&gt;
&lt;br /&gt;
== Nginx ==&lt;br /&gt;
==== RHEL9+ ====&lt;br /&gt;
Install packages.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# dnf install letsencrypt python3-certbot-nginx&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Download and register certificate.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# certbot -d &amp;lt;url&amp;gt; -d &amp;lt;url1&amp;gt; -d &amp;lt;url3...&amp;gt; --nginx&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Restart webserver.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# systemctl restart nginx&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Debian ====&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# &#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=Linux_Lets_Encrypt_-_Certbot&amp;diff=1383</id>
		<title>Linux Lets Encrypt - Certbot</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=Linux_Lets_Encrypt_-_Certbot&amp;diff=1383"/>
		<updated>2026-04-02T18:16:38Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Apache ==&lt;br /&gt;
==== RHEL9+ ====&lt;br /&gt;
Install packages.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# dnf install letsencrypt python3-certbot-apache&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Download and register certificate.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# certbot -d &amp;lt;url&amp;gt; -d &amp;lt;url1&amp;gt; -d &amp;lt;url3...&amp;gt; --apache&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Restart webserver.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# systemctl restart httpd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Nginx ==&lt;br /&gt;
==== RHEL9+ ====&lt;br /&gt;
Install packages.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# dnf install letsencrypt python3-certbot-nginx&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Download and register certificate.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# certbot -d &amp;lt;url&amp;gt; -d &amp;lt;url1&amp;gt; -d &amp;lt;url3...&amp;gt; --nginx&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Restart webserver.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# systemctl restart nginx&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Debian ====&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# &#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
	<entry>
		<id>http://www.outlandsmud.com/wiki/index.php?title=Linux_Lets_Encrypt_-_Certbot&amp;diff=1382</id>
		<title>Linux Lets Encrypt - Certbot</title>
		<link rel="alternate" type="text/html" href="http://www.outlandsmud.com/wiki/index.php?title=Linux_Lets_Encrypt_-_Certbot&amp;diff=1382"/>
		<updated>2026-04-02T18:14:35Z</updated>

		<summary type="html">&lt;p&gt;Michael Kohler: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Apache ==&lt;br /&gt;
==== RHEL9+ ====&lt;br /&gt;
Install packages.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# dnf install letsencrypt python3-certbot-apache&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Download and register certificate.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# certbot -d &amp;lt;url&amp;gt; -d &amp;lt;url1&amp;gt; -d &amp;lt;url3...&amp;gt; --apache&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Restart webserver.&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# systemctl restart httpd&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Debian ====&lt;br /&gt;
: &amp;lt;tt&amp;gt;&#039;&#039;&#039;# &#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael Kohler</name></author>
	</entry>
</feed>