Linux.git: Unterschied zwischen den Versionen

Aus OrgaMon Wiki
Zur Navigation springen Zur Suche springen
 
(9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 3: Zeile 3:
== Einrichten der Entwicklungsumgebung ==
== 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>
  git clone <dein Repo>
  on github: enable 2 Factor Autentification  
  on github: enable 2 Factor Autentification  
Zeile 16: Zeile 19:
== Daily Driver ==
== 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 add -u
  git commit -m "Describe todays Work"
  git commit -m "Describe todays Work"
Zeile 27: Zeile 43:
  git tag -a 9.004 -m "Rev. 9.004 - 04.03.2026"
  git tag -a 9.004 -m "Rev. 9.004 - 04.03.2026"
  git push origin 9.004
  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
<i>File .gitignore:</i><b>
#
# IDE positions / watches / breakpoints
#
Polyzalos.lps
#
# App
#
Polyzalos
</b>
git add .gitignore
git commit -m "initial .gitignore"
git push
cp ../Polyzalos.lps .
git status

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
  1. Make a copy outside the git
  2. Remove the file from git
  3. Add the File to gitignore
  4. 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