few changes, in makefile added colors
This commit is contained in:
@@ -33,7 +33,10 @@
|
||||
**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
|
||||
**git config --global core.editor "vim"** change the git editor for vim
|
||||
**git cherry-pick NAME_OF_BRANCH** it merge a branch into the actual one, but only with the last commit
|
||||
**git log --graph** show the graph of the commits with branchs
|
||||
**git log --first-parent master** show all the commits directly on master (or other branch)
|
||||
**relier dossier sur serveur en local avec git**
|
||||
**acceder au serveur via ssh :**
|
||||
`ssh hugugtzx@world-370.fr.planethoster.net -p 5022`
|
||||
|
||||
@@ -7,9 +7,12 @@
|
||||
**mkdir file{1..10}** creer 10 dossiers nommés de file1 à file10
|
||||
**pwd** print working directory
|
||||
**xdg-open .** open working directory
|
||||
**du -sh** directory sizes
|
||||
**ncdu** (visual version of 'du' command) quick presentation of directories size
|
||||
|
||||
**ssh username@ssh.server.com -p 0000** se connecter a un serveur via ssh en precisant un port
|
||||
**ssh username@ssh.server.domain -p XXXX** se connecter a un serveur via ssh en precisant un port
|
||||
**sftp -P XXXX username@ssh.server.domain** se connecter a un server ssh avec le protocol ftp
|
||||
**vim scp://username@ssh.server.domain:XXXX//home/path/to/file** edit a remote file from local vim
|
||||
|
||||
**pdftotext** transforme un pdf en un fichier texte
|
||||
**^** designe le debut d'une ligne
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
/SYNTAX/
|
||||
to create a new syntax file, just copy an existing one :
|
||||
cp /usr/share/vim/vimXX/syntax/extension.vim ~/.vim/syntax/
|
||||
and change the name to match the extension
|
||||
and change the content to whatever you want
|
||||
|
||||
/MODE INSERTION/
|
||||
**i** mode insertion avant le curseur
|
||||
**I** mode insertion au debut de la ligne
|
||||
|
||||
Reference in New Issue
Block a user