Introductory image processing and analysis as a Jupyterlab book.
stough, 202-
Incredibly grateful for this post solving the problem on a different repo.
This repo is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private fork by duplicating the repo is documented here.
Before doing any of this, you need to add an ssh key to your github account, as you may have done before for gitlab or for other machines. Setting this up allows this particular machine/filesystem to interact with github.com through ssh.
git clone --bare git@github.com:joshuastough/imageprocessing.git
my_imageprocessing
.
If for some reason you are unable to create a private repo, you can request unlimited private repos as a student by getting the student pack from Github.
my_imageprocessing
repository.
Replace
<your_username>
with your actual Github username in the url below.cd imageprocessing.git/ git push --mirror git@github.com:<your_username>/my_imageprocessing.git
cd ..
rm -rf imageprocessing.git/
my_imageprocessing
repository on your machine (in my case in the workspace folder).
cd ~/workspace
git clone git@github.com:<your_username>/my_imageprocessing.git
cd my_imageprocessing/
git remote add upstream git@github.com:joshuastough/imageprocessing.git
git remote set-url --push upstream DISABLE
You can list all your remotes with
git remote -v
. You should see:origin git@github.com:<your_username>/my_imageprocessing.git (fetch) origin git@github.com:<your_username>/my_imageprocessing.git (push) upstream git@github.com:joshuastough/imageprocessing.git (fetch) upstream DISABLE (push)
When you push, do so on origin with
git push origin
When you want to pull changes fromupstream
you can just fetch the upstream.git fetch upstream
Incorporating the upstream changes can be kind of a headache given our ipynb code. One option, rebasing
git rebase upstream/main
can lead lead to a lot of failed merges. My recommendation is that you check out only the new matrial I provide. For example, if I tell you I’ve committed a new module/folder on
Tomography
that you should pull into your codebase, you can usecheckout
to get just that from my repo.git fetch upstream git checkout upstream/main Tomography
then commit and push and you’ve got my
Tomography
module in your own private fork.