https://github.com/ventralnet/git-sandbox
A script that will set up a person new to git with a local remote and two mock client clones to experiment with working with a remote.
https://github.com/ventralnet/git-sandbox
git
Last synced: 3 months ago
JSON representation
A script that will set up a person new to git with a local remote and two mock client clones to experiment with working with a remote.
- Host: GitHub
- URL: https://github.com/ventralnet/git-sandbox
- Owner: ventralnet
- Created: 2016-07-20T02:16:44.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-22T00:52:20.000Z (almost 9 years ago)
- Last Synced: 2025-01-21T21:31:20.473Z (5 months ago)
- Topics: git
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Purpose
`create-git-sandbox.sh` is a simple BASH script that will create a local mock environment that a new user to GIT can use to experiment and learn. It creates a local bare repository that acts as a remote repository, and two client directories which mimic two separate developers that have the repository cloned.
The script will create three directories
* `./remote`
* `./clientA`
* `./clientB``./remote` is a remote repository the student can 'push' and 'pull' from (don't worry about this folder. Just know that is where your remote repository (origin) is)
`./clientA` is a clone of the repository that mocks being a developer having the repository checked out
`./clientB` is a clone of the repository that mocks being another developer having the repository checked out
That is all there is to it. Push, pull, commit, add, rebase in your own GIT sandbox.