Skip to content

Reval63/projet_photo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Projet-photo

Git

Quelques Commandes de base pour l'utilisation de Git.

  • Cloner un depot sur la forge

    $ git clone lien_du_depot
  • Ajouter un depot distant

    $ git remote add origin lien_du_depot 
  • Actualiser le contenu

    $ git fetch origin
    $ git reset --hard origin/master
  • Creer une branche

    $ git branch nom_de_la_branche
  • Se rendre sur la branche

    $ git checkout nom_de_la_branche
  • Le commit:

    1. ajouter un fichier ou tous les fichiers
    $ git add nom_du_fichier
    # ou 
    $ git add .
    1. on commit
    $ git commit -m "message" 
  • Fusion de branche

    $ git merge nom_de_la_branche
  • Ajouter un tag sur la branche actuelle

    $ git tag nom_du_tag 
  • Envoyer vos donees sur le depot distant

    $ git push origin nom_de_la_branche 

Ungit

Installer Ungit (pour avoir un visuel sur les branches)

  • Installer Node.js

  • Ouvrir un invité de commande

  • Taper la commande suivante

$ npm install -g ungit
  • Aller dans le dossier contenant le projet et taper
$ ungit

About

projet-photo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 32.4%
  • PHP 31.3%
  • Java 27.4%
  • CSS 7.5%
  • JavaScript 1.3%
  • ApacheConf 0.1%