/git-upload (d7fd46541b082c8e457fd846350982b4ec6eddb2) (648 bytes) (mode 100755) (type blob)
#!/bin/sh
git status
if [ $? != 0 ]; then
git init
git remote add origin https://gitlab.com/fluffrabbit/SkyHammer.git
fi
git add -A .
read -p "Commit description: " desc
read -p "Username to display: " username
git config user.email "@"
git config user.name "$username"
git commit -m "$desc"
git push origin master
if [ $? != 0 ]; then
echo Forcing push, wiping the repository and commit history and replacing it with your folder. Only proceed if you REALLY want to shake things up. A better alternative might be to run git pull origin master and then try running git-upload again. Proceeding with the force.
git push origin master --force
fi
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
1895 |
d4df843cfdbeeb5e71294f9a794056c8364b748e |
DEVELOPING.md |
100644 |
blob |
813 |
10671f46e12bbd617321e1db234f1fc5f66580f0 |
README.md |
100644 |
blob |
143 |
7d8077e5c704882bb94eedf259064fac92599a12 |
TODO.txt |
100644 |
blob |
1170 |
3a61ca2dc07623b8da7ef7312943f403f3d3bb94 |
UNLICENSE.txt |
040000 |
tree |
- |
7aeddbd92780123e273ca3873d648df2822986ee |
data |
100644 |
blob |
324 |
1d27ec53b2528f1844eaa8c7491d12cf177ae762 |
engine.cfg |
100644 |
blob |
7954 |
aa334a84b2b741c515279757f8742355180a430d |
export.cfg |
100755 |
blob |
194 |
7163da8c19f7f3389606351843809c677516f896 |
git-pull |
100644 |
blob |
207 |
fcc4118bc58e2c75d8db38b657f07d3d6d5e47dd |
git-pull.bat |
100755 |
blob |
648 |
d7fd46541b082c8e457fd846350982b4ec6eddb2 |
git-upload |
100644 |
blob |
661 |
a2cdf2dab8f8e1ee6eca35a04975838676e35ab3 |
git-upload.bat |
100644 |
blob |
3875 |
3d7add439450b1e9233c5157f470dd8e887c0298 |
icon.png |
100644 |
blob |
18 |
5130fd1aabc49e7fb3839ce5747775b22672a627 |
icon.png.flags |
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/fluffrabbit/SkyHammer
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/fluffrabbit/SkyHammer
Clone this repository using git:
git clone git://git.rocketgit.com/user/fluffrabbit/SkyHammer
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