GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python_and_bash_scripts/bash_scripts/8-host_git_repo at main · tpauldike/python_and_bash_scripts Expand file tree/ Copy path8-host_git_repoMore file actions executable file ·20 lines (17 loc) · 580 Bytes / Copy path8-host_git_repoFile metadata and controlsexecutable file ·20 lines (17 loc) · 580 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 #!/bin/bash # initialize a git repository and have it hosted automatically, having created the GitHub repository for it. #+ Replace [PAT] with your Personal Access Token #+ Replace [USERNAME] with your GitHub username GITREPO=$1 if [ $# -eq 1 ]; then GITBRANCH="main" elif [ $# -eq 2 ]; then GITBRANCH=$2 else echo -e "Usage:\t./8-host_git_repo <repository> <branch_name>" echo 'The second argument is optional and "main" by default' exit 1 fi git remote add origin https://[PAT]@github.com/[USERNAME]/$GITREPO.git git branch -M $GITBRANCH git push -u origin $GITBRANCH |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |