Linux.git: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Root (Diskussion | Beiträge) |
Root (Diskussion | Beiträge) |
||
| Zeile 20: | Zeile 20: | ||
# | # | ||
# [optional] Check whats you | # [optional] Check whats you updated today | ||
# | # | ||
git status | git status | ||
| Zeile 30: | Zeile 30: | ||
# | # | ||
# Send your | # Send your updated Files | ||
# | # | ||
git add -u | git add -u | ||
Aktuelle Version vom 17. März 2026, 15:18 Uhr
- Dieses Mini-Howto soll erklären was man als Entwickler auf der Kommandozeile seines Systems tun muss um seinen Quelltext auf github zu aktualisieren
Einrichten der Entwicklungsumgebung
# # Sorry alle Schritte nur so aus dem Kopf - beim nächsten Mal kontrolliere ich diese Einträge / versprochen. # git clone <dein Repo> on github: enable 2 Factor Autentification local: generate a key ssh-keygen -t ed25519 -C "andreas.filsinger@orgamon.org" on github: store the .pub-Part Key in github "SSH Keys save" local: login in github ssh -T git@github.com say "yes" change the origin of the git git remote set-url origin git@github.com:Andreas-Filsinger/Polyzalos.git
Daily Driver
#
# [optional] Check whats you updated today
#
git status
#
# [optional] Add new Files
#
git add {Path|File}
#
# Send your updated Files
#
git add -u
git commit -m "Describe todays Work"
git push
Tag it
# # Sample for set a tag "9.004" # git tag -a 9.004 -m "Rev. 9.004 - 04.03.2026" git push origin 9.004
Remove private File
- private in a sense that is has not a secret but is useless for cloners
- Make a copy outside the git
- Remove the file from git
- Add the File to gitignore
- Put back the copy
cp Polyzalos.lps .. git rm Polyzalos.lps git commit -m "remove Polyzalos.lps" git push touch .gitignore nano .gitignore File .gitignore: # # IDE positions / watches / breakpoints # Polyzalos.lps # # App # Polyzalos git add .gitignore git commit -m "initial .gitignore" git push cp ../Polyzalos.lps . git status