/2.sh (461335701ba227fbf6c0959dcc3c8ffe2281f3af) (499 bytes) (mode 100644) (type blob)
#!/bin/sh
if git-rev-parse --verify HEAD >/dev/null 2>&1 ; then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi
# Find files with trailing whitespace
for FILE in `exec git diff-index --check --cached $against -- | sed '/^[+-]/d' | sed -r 's/:[0-9]+:.*//' | uniq` ; do
# Fix them!
sed -i 's/[[:space:]]*$//' "$FILE"
done
exit
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
23 |
b0220e6db08f49f829322b08a8ab05d9d0f55f54 |
1.txt |
100644 |
blob |
499 |
461335701ba227fbf6c0959dcc3c8ffe2281f3af |
2.sh |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/dongge/m1
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/dongge/m1
Clone this repository using git:
git clone git://git.rocketgit.com/user/dongge/m1
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main