See the git essay here.
git clone url
, replacing url with the private tinyshop repository url: https://github.com/user/tinyshop.git, replacing user with the GitHub username.cd tinyshop
to change to the tinyshop directory. Hereinafter it is assumed the reader understands how to change directories.echo "domain tinyshop repository" > README.md
, replacing domain with the domain, to declare the purpose of the repository.git add README.md
to add README.md to the staging area.git commit -m "Create the README."
to commit README.md to the repository.git remote add tinyshop https://github.com/stefen-swain/tinyshop.git
to set the tinyshop remote repository to https://github.com/stefen-swain/tinyshop.git, hereinafter called the public tinyshop repository.git fetch tinyshop master
to fetch the public tinyshop repository master branch.git merge tinyshop/master --no-commit --allow-unrelated-histories
to merge the public tinyshop repository with the private tinyshop repository, without committing.git rm .gitignore
to remove .gitignore from the staging area. .gitignore declares files to be ignored by git.rm .gitignore
to remove .gitignore from the working directory; this allows the push of configuration files to the private tinyshop repository.git commit -m "Merge public tinyshop repository."
to commit the merged files to the repository.