<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://infotechpedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Git_Branch_Command</id>
	<title>Git Branch Command - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://infotechpedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Git_Branch_Command"/>
	<link rel="alternate" type="text/html" href="https://infotechpedia.org/w/index.php?title=Git_Branch_Command&amp;action=history"/>
	<updated>2026-06-04T00:30:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.14</generator>
	<entry>
		<id>https://infotechpedia.org/w/index.php?title=Git_Branch_Command&amp;diff=117&amp;oldid=prev</id>
		<title>TomHutchison: TomHutchison moved page Git Branch Commands to Git Branch Command without leaving a redirect: not commands but command</title>
		<link rel="alternate" type="text/html" href="https://infotechpedia.org/w/index.php?title=Git_Branch_Command&amp;diff=117&amp;oldid=prev"/>
		<updated>2018-03-01T15:34:23Z</updated>

		<summary type="html">&lt;p&gt;TomHutchison moved page &lt;a href=&quot;/w/index.php?title=Git_Branch_Commands&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Git Branch Commands (page does not exist)&quot;&gt;Git Branch Commands&lt;/a&gt; to &lt;a href=&quot;/wiki/Git_Branch_Command&quot; title=&quot;Git Branch Command&quot;&gt;Git Branch Command&lt;/a&gt; without leaving a redirect: not commands but command&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 15:34, 1 March 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>TomHutchison</name></author>
		
	</entry>
	<entry>
		<id>https://infotechpedia.org/w/index.php?title=Git_Branch_Command&amp;diff=112&amp;oldid=prev</id>
		<title>TomHutchison: new page</title>
		<link rel="alternate" type="text/html" href="https://infotechpedia.org/w/index.php?title=Git_Branch_Command&amp;diff=112&amp;oldid=prev"/>
		<updated>2018-03-01T15:10:28Z</updated>

		<summary type="html">&lt;p&gt;new page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;List all the branches in your repo, and indicate what branch you're currently checked out ( denoted with a '''*''' ):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;code&amp;quot;&amp;gt;git branch&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git branch&lt;br /&gt;
  develop&lt;br /&gt;
  fix-js&lt;br /&gt;
* master&lt;br /&gt;
  v1.x.x&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create a new branch and switch to it:	&lt;br /&gt;
&amp;lt;pre class=&amp;quot;code&amp;quot;&amp;gt;git checkout -b &amp;lt;branchname&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git checkout -b develop&lt;br /&gt;
Switched to a new branch 'develop'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Switch from one branch to another:	&lt;br /&gt;
&amp;lt;pre class=&amp;quot;code&amp;quot;&amp;gt;git checkout &amp;lt;branchname&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git checkout develop&lt;br /&gt;
Switched to branch 'develop'&lt;br /&gt;
Your branch is up-to-date with 'origin/develop'.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Delete the feature branch:	&lt;br /&gt;
&amp;lt;pre class=&amp;quot;code&amp;quot;&amp;gt;git branch -d &amp;lt;branchname&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git branch -d develop&lt;br /&gt;
Deleted branch develop (was f1aa257).&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Push the branch to your remote repository, so others can use it:	&lt;br /&gt;
&amp;lt;pre class=&amp;quot;code&amp;quot;&amp;gt;git push origin &amp;lt;branchname&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git push origin master&lt;br /&gt;
Counting objects: 3, done.&lt;br /&gt;
Delta compression using up to 4 threads.&lt;br /&gt;
Compressing objects: 100% (2/2), done.&lt;br /&gt;
Writing objects: 100% (3/3), 318 bytes | 0 bytes/s, done.&lt;br /&gt;
Total 3 (delta 0), reused 0 (delta 0)&lt;br /&gt;
To https://github.com/icarus/Hello-world&lt;br /&gt;
   f1aa257..26600b8  master -&amp;gt; master&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Push all branches to your remote repository:	&lt;br /&gt;
&amp;lt;pre class=&amp;quot;code&amp;quot;&amp;gt;git push --all origin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git push --all origin&lt;br /&gt;
Everything up-to-date&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Delete a branch on your remote repository:	&lt;br /&gt;
&amp;lt;pre class=&amp;quot;code&amp;quot;&amp;gt;git push origin :&amp;lt;branchname&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git push origin :develop&lt;br /&gt;
To https://github.com/icarus/Hello-world&lt;br /&gt;
 - [deleted]         develop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Git Commands]]&lt;/div&gt;</summary>
		<author><name>TomHutchison</name></author>
		
	</entry>
</feed>