Commandes et didacticiels Git importants

Comment obtenir de l’aide pour une commande Git

aide git [-a|–all|-i|–info|-m|–man|-w|–web] [COMMAND]

Exemple : git help git

Il lance un navigateur et affiche une aide en HTML.

Configuration du référentiel local et réalisation du push initial :

cd my_project
git init
git add *
git commit -m "My initial commit message"
git remote add origin git@example.com:my_project.git
git push -u origin master

Dépôt de paiement

git clone git://github.com/schacon/grit.git

Pour valider les modifications dans le référentiel local, ajoutez simplement, puis validez. Si vous souhaitez transférer la branche/les modifications locales vers le référentiel distant, exécutez simplement la commande push ci-dessous.

git add --all

git commit --all

git push

Commande Pousser vers le référentiel

git push <remote> <local branch name>:<remote branch to push into>
git push [--all | --mirror | --tags] [--follow-tags] [-n | --dry-run] [--receive-pack=]
           [--repo=] [-f | --force] [--prune] [-v | --verbose] [-u | --set-upstream]
           [--force-with-lease[=[:]]]
           [--no-verify] [ […]]

D’autres commandes à trouver dans les liens suivants.

Git quotidien avec 20 commandes

https://www.kernel.org/pub/software/scm/git/docs/everyday.html

Bons tutoriels Git

Tutoriel 1 premier à réaliser – http://git-scm.com/docs/gittutorial

Tutoriel 2 secondes à réaliser – http://git-scm.com/docs/gittutorial-2.html

Tutoriel supplémentaire – http://www.vogella.com/tutorials/Git/article.html#firstgit_repostatus

2 responses to “Commandes et didacticiels Git importants”

  1. I wanted to thank you for this wonderful read!!
    I definitely loved every bit of it. I have got
    you book-marked to check out new stuff you post…

  2. Wow, this paragraph iѕ pleasant, my younger
    sisster iss analyzing these kinds oof things,
    thus I am going to inform her.

Laisser une réponse

Découvrez-en davantage sur le blog de Velislav Krastev

Abonnez-vous maintenant pour continuer à lire et accéder aux archives complètes.

Continuer la lecture