Git: Difference between revisions

From Wiki
No edit summary
No edit summary
Line 1: Line 1:
== Usage ==
* Create repository (on server)
* Create repository (on server)
<blockquote>
<blockquote>
Line 42: Line 44:
</pre>
</pre>
</blockquote>
</blockquote>
== Configuration ==


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

Revision as of 20:28, 9 February 2018

Usage

  • Create repository (on server)
git init
  • show changed files
git diff --cached --name-only
git diff --name-status
  • add files
git add *
  • commit changes
git commit -m "Commit-Nachricht"
git commit -a                      # includes add
  • send changes to server
git push
  • get latest changes from server
git pull

Configuration