Commit a242a203 authored by Jan Claudio Mikusch's avatar Jan Claudio Mikusch 👃

Update README.md

parent 77b843f9
......@@ -42,12 +42,55 @@ Webserver zu laden, wird das ganze Team entsprechend beurteilt)
# Git Command line instructions
## Create a new repository
git clone https://gitlab.mediacube.at/fhs41026/mediengestaltung.git
`git clone https://gitlab.mediacube.at/fhs41026/mediengestaltung.git`
Befehle
-----------
Initialize Git:
`git init`
Get everything ready to commit:
`git add .`
Get custom file ready to commit:
`git add index.html`
Commit changes:
`git commit -m "Message"`
Add and commit in one step:
`git commit -am "Message"`
Remove files from Git:
`git rm index.html`
Update all changes:
`git add -u`
Remove file but do not track anymore:
`git rm --cached index.html`
Move or rename files:
`git mv index.html dir/index_new.html`
Undo modifications (restore files from latest commited version):
`git checkout -- index.html`
## Add file
Restore file from a custom commit (in current branch):
`git checkout 6eb715d -- index.html`
git add <filename>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment