Git: Difference between revisions

From Wiki
No edit summary
No edit summary
Line 1: Line 1:
* Create repository
* Create repository (on server)
<blockquote>
<pre>
git init
</pre>
</blockquote>


* add files
<blockquote>
<pre>
git add *
</pre>
</blockquote>
* commit changes
<blockquote>
<pre>
git commit -m "Commit-Nachricht"
</pre>
</blockquote>
* send changes to server
<blockquote>
<pre>
git push
</pre>
</blockquote>
* get latest changes from server
<blockquote>
<pre>
git pull
</pre>
</blockquote>


[[Category:Linux/Services]]
[[Category:Linux/Services]]

Revision as of 20:28, 16 November 2017

  • Create repository (on server)
git init
  • add files
git add *
  • commit changes
git commit -m "Commit-Nachricht"
  • send changes to server
git push
  • get latest changes from server
git pull