quelques ajouts dans git shell et vim

This commit is contained in:
hugodu69
2019-11-09 11:54:26 +01:00
parent 69f271f195
commit 27375f7a8a
4 changed files with 10 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
startup_message off startup_message off
chdir /home/simplonco/Bureau/ chdir $HOME/
#pour afficher une ligne avec des infos #pour afficher une ligne avec des infos
hardstatus on hardstatus on

View File

@@ -10,7 +10,8 @@
**git push** pushes the modifications to the distant repository github (remote) **git push** pushes the modifications to the distant repository github (remote)
**git remote -v** lists all distant origins, remotes, your local git project knows (in other words it lists a git project's remotes) **git remote -v** lists all distant origins, remotes, your local git project knows (in other words it lists a git project's remotes)
**git remote show origin** show the state of the remote and its branches **git remote show origin** show the state of the remote and its branches
**git remote rm remote_name** supprimer un remote **git remote rm remote_name** delete a remote
**git remote set-url remote_name new_name** change remote name
**git pull** pull any changes from the remote **git pull** pull any changes from the remote
**git clone** creates a local copy of a remote **git clone** creates a local copy of a remote
**git branch** lists all a git project's branches **git branch** lists all a git project's branches
@@ -31,3 +32,4 @@
**git stash** saves the uncommited changes besides for later use **git stash** saves the uncommited changes besides for later use
**git stash pop** reapply the stashed changes and removes them from the stash area **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 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

View File

@@ -6,6 +6,7 @@
**fg** relance le dernier travail mis sur pause **fg** relance le dernier travail mis sur pause
**mkdir file{1..10}** creer 10 dossiers nommés de file1 à file10 **mkdir file{1..10}** creer 10 dossiers nommés de file1 à file10
**pwd** print working directory **pwd** print working directory
**xdg-open .** open working directory
**pdftotext** transforme un pdf en un fichier texte **pdftotext** transforme un pdf en un fichier texte
**^** designe le debut d'une ligne **^** designe le debut d'une ligne

View File

@@ -1,6 +1,10 @@
/MODE INSERTION/ /MODE INSERTION/
**i** mode insertion (écrire du texte) **i** mode insertion avant le curseur
**I** mode insertion au debut de la ligne
**a** mode insertion apres le curseur
**A** mode insertion a la fin de la ligne
**o** mode insertion a la ligne **o** mode insertion a la ligne
**O** mode insertion a la ligne du dessus
**3iTEXT** ecrira trois fois TEXT **3iTEXT** ecrira trois fois TEXT
**ctrl r** * colle depuis le clipboard en mode insertion **ctrl r** * colle depuis le clipboard en mode insertion