FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
git-https-push-action/entrypoint.sh at master · ilkka/git-https-push-action · GitHub
ilkka
/
git-https-push-action
Public
Notifications
You must be signed in to change notification settings
Fork
9
Star
9
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
git-https-push-action
/
entrypoint.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
22 lines (16 loc) · 451 Bytes
Breadcrumbs
git-https-push-action
/
entrypoint.sh
Copy path
File metadata and controls
executable file
·
22 lines (16 loc) · 451 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!
/bin/bash -l
set
-xeEuo pipefail
if
[[
-z
"
${1
:-
}
"
]]
;
then
echo
"
Usage:
$0
REMOTE_URL
"
>&2
exit
1
fi
REMOTE_URL=
$1
REMOTE=upstream-
$(
date +%s
)
trap
"
git remote rm
$REMOTE
"
ERR SIGHUP SIGINT SIGTERM
declare
-A EXTRA_ARGS
function
join_by
{
local
IFS=
"
$1
"
;
shift
;
echo
"
$*
"
;
}
if
[[
${SKIP_HOOKS
:-
}
==
"
true
"
]]
;
then
EXTRA_ARGS+=
"
--no-verify
"
fi
git remote add
$REMOTE
$REMOTE_URL
git push
$(
join_by
"
"
$EXTRA_ARGS
)
$REMOTE
HEAD:master
Back
|
FazBrowse Home
|
New Git URL