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

IA agentique. bla bla

 Actuellement, l’un des principaux obstacles à la réalisation du plein potentiel des agents d’IA réside dans leur incapacité à communiquer e...