|
|
@ -11,58 +11,5 @@ |
|
|
|
### Kritik |
|
|
|
|
|
|
|
|
|
|
|
# Links |
|
|
|
|
|
|
|
https://www.nano-editor.org/docs.php |
|
|
|
https://www.nano-editor.org/dist/latest/cheatsheet.html |
|
|
|
https://gitlab.cs.hs-fulda.de/ |
|
|
|
|
|
|
|
|
|
|
|
# Command line instructions |
|
|
|
|
|
|
|
You can also upload existing files from your computer using the instructions below. |
|
|
|
Git global setup |
|
|
|
|
|
|
|
git config --global user.name "fdai7377" |
|
|
|
git config --global user.email "christine-stella.stawizki@informatik.hs-fulda.de" |
|
|
|
|
|
|
|
## Create a new repository |
|
|
|
|
|
|
|
git clone git@gitlab.cs.hs-fulda.de:fdai7377/lerntagebuch.git |
|
|
|
cd lerntagebuch |
|
|
|
git switch -c main |
|
|
|
touch README.md |
|
|
|
git add README.md |
|
|
|
git commit -m "add README" |
|
|
|
git push -u origin main |
|
|
|
|
|
|
|
## Push an existing folder |
|
|
|
|
|
|
|
cd existing_folder |
|
|
|
git init --initial-branch=main |
|
|
|
git remote add origin git@gitlab.cs.hs-fulda.de:fdai7377/lerntagebuch.git |
|
|
|
git add . |
|
|
|
git commit -m "Initial commit" |
|
|
|
git push -u origin main |
|
|
|
|
|
|
|
## Push an existing Git repository |
|
|
|
|
|
|
|
cd existing_repo |
|
|
|
git remote rename origin old-origin |
|
|
|
git remote add origin git@gitlab.cs.hs-fulda.de:fdai7377/lerntagebuch.git |
|
|
|
git push -u origin --all |
|
|
|
git push -u origin --tags |
|
|
|
|
|
|
|
|
|
|
|
# Wie man pusht |
|
|
|
|
|
|
|
git add . |
|
|
|
git commit -m "Insert commit message here" |
|
|
|
git push |
|
|
|
|
|
|
|
# Explains how to undo commit |
|
|
|
|
|
|
|
https://www.freecodecamp.org/news/git-remove-last-commit-how-to-undo-a-commit-in-git/ |
|
|
|
|
|
|
|
--- |
|
|
|
## SU 02 (31.10.2023) |