GIT

GIT

seb@debian11:~/gitlocal/service-hebergement$ git clone http://gitea.voxintra/service-hebergement/Saturne-deploiement
Clonage dans ‘service-hebergement’…
Username for ‘http://gitea.voxintra’: sebastien.bonnamy@voxaly.com
Password for ‘http://sebastien.bonnamy@voxaly.com@gitea.voxintra’

git remote add recette admin_voxaly@51.68.114.162:/home/admin_voxaly/sebastien/Saturne-deploiement

git remote -v
origin http://gitea.voxintra/service-hebergement/Saturne-deploiement (fetch)
origin http://gitea.voxintra/service-hebergement/Saturne-deploiement (push)
recette admin_voxaly@51.68.114.162:/home/admin_voxaly/sebastien/Saturne-deploiement (fetch)
recette admin_voxaly@51.68.114.162:/home/admin_voxaly/sebastien/Saturne-deploiement (push)

git push origin HEAD:feature/scellements-pic

git push recette

seb@debian11:~/gitlocal/service-hebergement/Saturne-deploiement$ git branch
feature/docacloud

  • master

seb@debian11:~/gitlocal/service-hebergement/Saturne-deploiement$ git branch -a
feature/docacloud

  • master
    remotes/origin/HEAD -> origin/master
    remotes/origin/develop
    remotes/origin/feature/docacloud
    remotes/origin/feature/visiovote-syslog
    remotes/origin/feature/website
    remotes/origin/master

seb@debian11:~/gitlocal/service-hebergement/Saturne-deploiement$ git branch hotfix/fail2ban

seb@debian11:~/gitlocal/service-hebergement/Saturne-deploiement$ git branch -a
feature/docacloud
hotfix/fail2ban

  • master
    remotes/origin/HEAD -> origin/master
    remotes/origin/develop
    remotes/origin/feature/docacloud
    remotes/origin/feature/visiovote-syslog
    remotes/origin/feature/website
    remotes/origin/master

seb@debian11:~/gitlocal/service-hebergement/Saturne-deploiement$ git checkout hotfix/fail2ban
Basculement sur la branche ‘hotfix/fail2ban’

synchro branch feature avec develop

git merge develop

git push

Création d’une branche à partir d’une autre branche

git pull

git checkout -b new_docker develop

git checkout -b hotfix/toto master

git checkout -b feature/tutu develop

REBASE
!! être à jour sur la branch develop locale

à partir d’une branche

seb@debian11:~/gitlocal/service-hebergement/Saturne-deploiement$ git rebase develop
Rebasage et mise à jour de refs/heads/feature/crowdsec_patch avec succès.

puis

git push -f origin HEAD:feature/crowdsec_patch

#

Nouveau repository

#

Quick Guide
Clone this repository Need help cloning? Visit Help.
HTTP
Creating a new repository on the command line

touch README.md
git init

git add README.md
git commit -m « first commit »
git remote add origin http://gitea.voxintra/service-hebergement/Reverse_Proxy.git
git push -u origin master

Pushing an existing repository from the command line

git remote add origin http://gitea.voxintra/service-hebergement/Reverse_Proxy.git
git push -u origin master

#

Suppression branche locale

#

$ git branch -d [nom-de-ma-branche]
$ git branch -D [nom-de-ma-branche]

#

Pour supprimer une branche distante, c’est un peu différent :

#

$ git push [origin] –delete [nom-de-ma-branche]

#

dcloud admin_voxaly@adm-dcloud-ansible-recette:repos_git/Saturne-deploiement.git (fetch)
dcloud admin_voxaly@adm-dcloud-ansible-recette:repos_git/Saturne-deploiement.git (push)
newrecette admin_voxaly@adm-ovh-new-ansible-recette:repos_git/Saturne-deploiement.git (fetch)
newrecette admin_voxaly@adm-ovh-new-ansible-recette:repos_git/Saturne-deploiement.git (push)
prod admin_voxaly@adm-ovh-ansible-prod:repos_git/Saturne-deploiement.git (fetch)
prod admin_voxaly@adm-ovh-ansible-prod:repos_git/Saturne-deploiement.git (push)
recette admin_voxaly@adm-ovh-ansible-recette:repos_git/Saturne-deploiement.git (fetch)
recette admin_voxaly@adm-ovh-ansible-recette:repos_git/Saturne-deploiement.git (push)

git remote add dcloud admin_voxaly@adm-dcloud-ansible-recette:repos_git/Saturne-deploiement.git
git remote add newrecette admin_voxaly@adm-ovh-new-ansible-recette:repos_git/Saturne-deploiement.git
git remote add prod admin_voxaly@adm-ovh-ansible-prod:repos_git/Saturne-deploiement.git
git remote add recette admin_voxaly@dm-ovh-ansible-recette:repos_git/Saturne-deploiement.git