Friday, January 1, 2021

git usefull commands

Un tuto

https://www.ionos.fr/digitalguide/sites-internet/developpement-web/tutoriel-git/

 

 #Make a full clone of existing repository, such as from the website of a software project

git clone (URL, ie git://github.com/github/linux-2.6.git)
 
#Move/rename a file.  This spares you from having to remove and re-add the file 
#if it had been moved by bash
git mv (source) (destination)
 
#Delete a file and remove from Git repo
git rm (target)
 
#See branches in this repository
git branch
 
#Create a new branch of the Git tree
git branch (new branch name, ie "experimental")
 
#Switch from one branch to another
git checkout (branch name, ie "experimental")
 
#Merge branch (branch) into current tree
git merge (branch)

No comments:

Post a Comment

Ma journée du 01 Décembre 2025

En ce premier jour de décembre, l'heure est venue, De conter une histoire, par les dés soutenue. Quinze dés ont roulé, offrant leur dest...