update Softutils & git

This commit is contained in:
vincent 2020-11-26 19:27:32 +01:00
parent a2cd11c720
commit 6216f41d4d
2 changed files with 4 additions and 7 deletions

View File

@ -2,4 +2,4 @@
## tunelling ## tunelling
[chisel](https://github.com/jpillora/chisel) permet de mettre e,n place un tunel TCP sur du http [chisel](https://github.com/jpillora/chisel) permet de mettre en place un tunel TCP sur du http

View File

@ -1,21 +1,18 @@
# git # git
## delete a file only from git repository ## delete a file only from git repository
`git rm -rf --cached` `git rm -rf --cached`
## delete a file from complete history ## delete a file from complete history
be carefull can't push repo last time use be carefull can't push repo last time use
`git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch logbook.md" HEAD ` `git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch logbook.md" HEAD`
## example de déclencheur git ## example de déclencheur git
``` ```bash
#!/bin/bash #!/bin/bash
GIT_REPO=`pwd` GIT_REPO=`pwd`
SITE_NAME=notebook SITE_NAME=notebook
@ -40,4 +37,4 @@ rm -Rf $TMP_GIT_CLONE
fi fi
exit exit
``` ```