16 lines
472 B
Bash
16 lines
472 B
Bash
#!/bin/bash
|
|
# The Pusher — send your commits to a remote.
|
|
#
|
|
# When this script runs:
|
|
# - local-repo/ is a working repo with commits + identity already set
|
|
# - remote.git/ is a bare empty repo waiting for your push
|
|
#
|
|
# Your script must:
|
|
# 1. Inside local-repo, register remote.git as a remote named `origin`
|
|
# pointing at ../remote.git
|
|
# 2. Push the main branch to origin (use -u to set upstream)
|
|
#
|
|
# Tools: cd, git remote add, git push
|
|
|
|
# Your code here.
|