Git: Difference between revisions

From Wiki
No edit summary
No edit summary
Line 10: Line 10:
<pre>
<pre>
git diff --cached --name-only
git diff --cached --name-only
git diff --name-status
</pre>
</pre>
</blockquote>
</blockquote>

Revision as of 22:07, 31 January 2018

  • 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