<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://ess-wiki.advantech.com.tw/wiki/index.php?action=history&amp;feed=atom&amp;title=Git_push_to_GITHub</id>
		<title>Git push to GITHub - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://ess-wiki.advantech.com.tw/wiki/index.php?action=history&amp;feed=atom&amp;title=Git_push_to_GITHub"/>
		<link rel="alternate" type="text/html" href="https://ess-wiki.advantech.com.tw/wiki/index.php?title=Git_push_to_GITHub&amp;action=history"/>
		<updated>2026-05-21T04:32:38Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.3</generator>

	<entry>
		<id>https://ess-wiki.advantech.com.tw/wiki/index.php?title=Git_push_to_GITHub&amp;diff=6474&amp;oldid=prev</id>
		<title>Tim.liang: Created page with &quot;= Flow =  Here we take linux-imx as an example:  *Step 1:  clone source code to your folder   git clone [https://github.com/ADVANTECH-Corp/linux-imx6.git https://github.com/AD...&quot;</title>
		<link rel="alternate" type="text/html" href="https://ess-wiki.advantech.com.tw/wiki/index.php?title=Git_push_to_GITHub&amp;diff=6474&amp;oldid=prev"/>
				<updated>2017-04-14T07:15:14Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Flow =  Here we take linux-imx as an example:  *Step 1:  clone source code to your folder   git clone [https://github.com/ADVANTECH-Corp/linux-imx6.git https://github.com/AD...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Flow =&lt;br /&gt;
&lt;br /&gt;
Here we take linux-imx as an example:&lt;br /&gt;
&lt;br /&gt;
*Step 1:&lt;br /&gt;
&lt;br /&gt;
clone source code to your folder&lt;br /&gt;
&lt;br /&gt;
 git clone [https://github.com/ADVANTECH-Corp/linux-imx6.git https://github.com/ADVANTECH-Corp/linux-imx6.git]&lt;br /&gt;
&lt;br /&gt;
*Step 2:&lt;br /&gt;
&lt;br /&gt;
Check branch&lt;br /&gt;
&lt;br /&gt;
 git branch -a&lt;br /&gt;
  remotes/origin/HEAD -&amp;gt; origin/master&lt;br /&gt;
  remotes/origin/imx_4.1.15_1.0.0_ga&lt;br /&gt;
  remotes/origin/imx_4.1.15_2.0.0_ga&lt;br /&gt;
  remotes/origin/master&lt;br /&gt;
  remotes/origin/wdt&lt;br /&gt;
&lt;br /&gt;
Checkout to branch you want&lt;br /&gt;
&lt;br /&gt;
 git checkout imx_4.1.15_2.0.0_ga&lt;br /&gt;
&lt;br /&gt;
*Step 3&lt;br /&gt;
&lt;br /&gt;
 Modify source code &lt;br /&gt;
&lt;br /&gt;
*Step 4&lt;br /&gt;
&lt;br /&gt;
Commit your modification Add file or modification file , you should run &amp;quot;git add file&amp;quot; Delete file , you should run &amp;quot;git rm file&amp;quot; After doing above command&lt;br /&gt;
&lt;br /&gt;
Check file you want to commit&lt;br /&gt;
&lt;br /&gt;
 git status&lt;br /&gt;
 # On branch imx_4.1.15_2.0.0_ga&lt;br /&gt;
 # Your branch is up-to-date with 'origin/imx_4.1.15_2.0.0_ga'.&lt;br /&gt;
 #&lt;br /&gt;
 # Changes to be committed:&lt;br /&gt;
 #   (use &amp;quot;git reset HEAD &amp;lt;file&amp;gt;...&amp;quot; to unstage)&lt;br /&gt;
 #&lt;br /&gt;
 #       new file:   test&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Then commit your modification&lt;br /&gt;
&lt;br /&gt;
 git commit -m &amp;quot;commit message&amp;quot;&lt;br /&gt;
&lt;br /&gt;
*Step 5:&lt;br /&gt;
&lt;br /&gt;
git push to GitHub&lt;br /&gt;
&lt;br /&gt;
You should run &amp;quot;'''git pull'''&amp;quot; before you push to GitHub&lt;br /&gt;
&lt;br /&gt;
 git push &lt;br /&gt;
&lt;br /&gt;
Do not run &amp;quot;'''git push -f'''&amp;quot; , if there is any problem&lt;br /&gt;
&lt;br /&gt;
If there is any problem after you run &amp;quot;'''git push'''&amp;quot;, you should fix it or merge it.&lt;/div&gt;</summary>
		<author><name>Tim.liang</name></author>	</entry>

	</feed>