multi modifs

This commit is contained in:
hugogogo
2021-12-16 09:09:32 +01:00
parent ae4a700007
commit 308b4c4fdc
4 changed files with 37 additions and 1 deletions

13
git.txt
View File

@@ -33,3 +33,16 @@
**git stash pop** reapply the stashed changes and removes them from the stash area
**git stash apply** reaply the stashed changes and keep them in the stash area
**git config --global credential.helper store** store the passwords in .git-credentials in the HOME directory (thanks to global, as opposed to the project directory) so you don't have tot type it each time
**git cherry-pick NAME_OF_BRANCH** ti merge a branch into the actual one, but only with the last commit
**relier dossier sur serveur en local avec git**
**acceder au serveur via ssh :**
`ssh hugugtzx@world-370.fr.planethoster.net -p 5022`
**initier git dans le repo remote :**
`git init` in the repo
**dans le dossier local, cloner le repo :**
git clone ssh://hugugtzx@world-370.fr.planethoster.net:5022/home/hugugtzx/wordpress.hugulumu.fr
**avec :**
git clone ssh://username@hostname/path/to/project
avec `unsername@hostname` == la commande ssh
et `/path/to/project` == la sortie de `pwd` dans le dossier remote