Skip to content

Commit 81c6cd1

Browse files
committed
refactor: update commands
1 parent 3cd08a6 commit 81c6cd1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

git/git-commands.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,11 @@ git checkout -b <branch-name> <commit-hash>
146146

147147
######################################################################
148148

149+
### remove a file history from the git repository
150+
149151
git ls-files
150152

153+
export FILE_PATH="/path/to/file"
151154
git filter-branch --force --index-filter \
152155
'git rm --cached --ignore-unmatch ${FILE_PATH}' \
153156
--prune-empty --tag-name-filter cat -- --all

go/go-commands.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ go run main.go
44

55
######################################################################
66

7+
### test
8+
9+
go clean -testcache
10+
711
go test ./...
812
go test ./... -v -coverprofile=cover.out
913

0 commit comments

Comments
 (0)