Git: Difference between revisions
No edit summary |
No edit summary |
||
Line 37: | Line 37: | ||
</pre> | </pre> | ||
</blockquote> | </blockquote> | ||
* get repository from server | |||
<blockquote> | |||
<pre> | |||
git clone remoteurl | |||
</pre> | |||
</blockquote> | |||
* get latest changes from server | * get latest changes from server | ||
Line 44: | Line 54: | ||
</pre> | </pre> | ||
</blockquote> | </blockquote> | ||
== Configuration == | == Configuration == |
Revision as of 20:29, 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 repository from server
git clone remoteurl
- get latest changes from server
git pull