-
Notifications
You must be signed in to change notification settings - Fork 1
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
Few changes to the instructions how to compile a new kernel #1
Conversation
How did you submit the reviews? |
Experimenting: I used the same blue button on your commit, adding this README, and it resulted in a similar review. |
A note: the review that I submitted for the lines about Grub, is shown not only in that commit where I submitted the review, but in the last one too (because one of the lines about Grub is shown there too) :) GitHub whistles :) |
These might happen. I am going to fix them, since I am the owner of the repository.
I do not think so. Every commit is documented and I can choose to take all changes, pick some of them or reject everything. Other pull requests would make sense, if it refers to another issue or topic. Apropos
Edit - 20200921: By the way: Since this is a mirror repository from my internal Gitea instance, I am going to do some experiments here and then adapt the changes locally, so your pull request might disappear here. |
Concerning "how to checkout a pull request": On the upper right corner, there is a button called |
Thanks. I'll keep it in mind.
I'll keep it in mind too :D
OK. |
Good to know, about 'gh'! |
Here is what I did with your changes:
# this generates a random directory and automatically navigates to it "cd $(mktemp -d)"; see 1.
$ cdt
$ git clone "[email protected]:keks24/dotfiles.git"
$ cd "dotfiles/"
$ git checkout master
$ git remote add github "[email protected]:keks24/dotfiles.git"
$ git remote -v
github [email protected]:keks24/dotfiles.git (fetch)
github [email protected]:keks24/dotfiles.git (push)
origin [email protected]:keks24/dotfiles.git (fetch)
origin [email protected]:keks24/dotfiles.git (push)
$ git fetch github pull/1/head:enhancements_compiling_kernel This avoids to apply the changes to the current branch I am working on, which is currently Apropos
$ git branch
enhancements_compiling_kernel
master
$ git checkout enhancements_compiling_kernel
$ git log
# the best cli tool, i found so far, when working with git repositories; see 3 and 4.
$ tig I see here, that you state what you have changed. I see this in the diff, so this is actually redundant. It would be better to tell why you have changed it. For example: Rename
to
Associating the commit message
$ git log --pretty="oneline"
$ git checkout master
# cherry picking from the branch "enhancements_compiling_kernel"
$ git cherry-pick dbdf88b8d3fd68319f9b6afd77b880f67d26187b
[...]
# when there are some conflicts, edit the file with an editor and then
$ git add usr/src/README
$ git cherry-pick --continue Ah, I see. Cherry picking is also I cherry picked some of your commits and applied my changes to them. I also stumbled across this page6, which nicely adapts the output of
$ git push
$ git remote remove github
$ git remote -v
origin [email protected]:keks24/dotfiles.git (fetch)
origin [email protected]:keks24/dotfiles.git (push) 1 https://github.com/grml/grml-etc-core/blob/v0.17.4/etc/zsh/zshrc#L3419 |
Thanks for sharing your experience! I'll study it. Mercurial (which I'm used to) branches are designed in somewhat another way. There are multiple heads, which can diverge-converge. (One commit can't be included in different branches) |
Hi Ramon, I noticed also that there is not mentioned |
Oh yeah, I forgot to add that! You can still work with your |
Done; see #1 (comment). Thanks for the effort! |
Thanks for the information about About editing the file with an editor: my editor for git wasn't configured properly and wasn't opening (now it is).
Shown where? I'm going to check it... |
I meant this: halcon74/shell-scripts#1 (comment) You can edit that with any editor to solve
I meant, if you do further editing on your |
I added a new commit and pushed it to origin, but I don't see it here... Maybe, it's because the PR is closed? |
Yes, that could be it. You could test it with your other pull request about |
Possible. If/when I have something to add. Does it work only for master branch? |
Hi Ramon,
I am learning to make PRs... :)
I tried to make this PR especially for cherry-picking and, I need to say, it's not that easy.
I think in this case the best approach can be:
And even then there will arise conflicts. For example, I rename a section and move this section up. OK, I split it to two steps... But if you like to merge the second step, not first, there will be a conflict :)
EDIT: IMHO, it contradicts the essence of a VCS; it's better to make multiple PRs.