forked from vincent/notebook
update Softutils & git
This commit is contained in:
parent
a2cd11c720
commit
6216f41d4d
@ -2,4 +2,4 @@
|
||||
|
||||
## 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
|
||||
|
@ -1,21 +1,18 @@
|
||||
# git
|
||||
|
||||
|
||||
## delete a file only from git repository
|
||||
|
||||
`git rm -rf --cached`
|
||||
|
||||
## delete a file from complete history
|
||||
|
||||
|
||||
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
|
||||
|
||||
```
|
||||
```bash
|
||||
#!/bin/bash
|
||||
GIT_REPO=`pwd`
|
||||
SITE_NAME=notebook
|
||||
@ -40,4 +37,4 @@ rm -Rf $TMP_GIT_CLONE
|
||||
fi
|
||||
exit
|
||||
|
||||
```
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user