Go to file Use this template
formk 5138243910 Mise à jour de 'README.md' 2023-02-08 13:12:47 +00:00
LICENSE Initial commit 2023-02-08 11:16:06 +00:00
README.md Mise à jour de 'README.md' 2023-02-08 13:12:47 +00:00

README.md

Clefs SSH

ssh-keygen -f /home/user/.ssh/your_key_name -t ed25519 -C your_email

Git

git config --global user.name "votre_nom"

git config --global user.email "votre_email"

git init nom_de_votre_projet

git add fichier

git add * or git add .

git commit -m "court_message_de_commit"

git commit -a -m "court_message_de_commit"

git commit --amend

Modéle de dépôt git

Création d'un nouveau dépôt en ligne de commande

touch README.md
git init
git checkout -b main
git add README.md
git commit -m "first commit"
git remote add origin https://codeberg.org/user/nom_de_votre_depot.git
ou
git remote add origin git@codeberg.org:user/nom_de_votre_depot.git
git push -u origin main

Soumission d'un dépôt existant par ligne de commande

git remote add origin https://codeberg.org/user/nom_de_votre_depot.git
ou
git remote add origin git@codeberg.org:user/nom_de_votre_depot.git
git push -u origin main