Skip to content

Updating upstream #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rust-for-bitcoiners-2/QandA_for_assignment_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## This contain all disscussions and topic realted to assignment 1 caesar_cipher
39 changes: 39 additions & 0 deletions rust-for-bitcoiners-2/updating_upstream_manually.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
## updating your repo with upstream if there is any correction made.

Let me try to update mine so I can explain to the others
All right, it's a bit more complicated than cloning again, it will require a rebase. I'll explain in the next message so it can eventually be pinned.

### step1 go to your repo and add a new remote (the repo delcin is updating):
`git remote add upstream https://github.com/delcin-raj/rfb_2_2024_2.git`

### step2 fetch from upstream:
`git pull upstream main --rebase`

in case of conflict (happened to me), edit each conflicting file. It will have markers like these:

` <<<<<<< HEAD
this is some content to mess with
content to append

totally different content to merge later
new_branch_to_merge_later `

To select the new text, change it to something like:

`this is some content to mess with content to append`

There can be potentially many of these, inspect and edit every single one.

### step 3 after fixing all conflicts, stage the conflicting files:
`git add .`

### step4 continue rebasing:
`git rebase --continue`

### step 5 push to your repo:
`git push origin main --force-with-lease`

Github classroom does not update repos automatically when the template repo changes.
When someone accepts the invitation link, it will clone the template in a new repo for the student.
So, if you accepted the invitation before the change, you have to manually rebase like the above.
If you accepted after the change, it will be already right.