-
Notifications
You must be signed in to change notification settings - Fork 148
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
Improve windows setup process #2079
Conversation
requirement for global config on user machines.
Haven't tested, opinions:
|
|
5da3a98
to
634630c
Compare
Co-authored-by: Johannes Wolf <janno42@posteo.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some parts in the readme are very introductory, but this may be helpful in addition to our presentation for first semesters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
git remote set-url origin git@github.com:<your-username>/EvaP.git | ||
git remote add upstream git@github.com:e-valuation/EvaP.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, when did they change that set-url
actually sets both fetch and push urls? I thought I remembered that it was odd that you always had to run it once without and once with --push
to actually set both urls, but this here works also for me :D
I wonder if we should maybe provide a more idempotent set of commands here:
git remote remove origin
git remote add origin git@github.com:<your-username>/EvaP.git
git remote add upstream git@github.com:e-valuation/EvaP.git
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, when did they change that set-url actually sets both fetch and push urls? I thought I remembered that it was odd that you always had to run it once without and once with --push to actually set both urls, but this here works also for me :D
Fair point. The way I understand the documentation, set-url
without any further arguments will simply change the "first" url configured for the remote, and perhaps this is the push and pull url with the trivial setup after cloning? That would mean you'd have to manually set the push url once you specified a separate push url -- that would make sense to me.
I didn't want to mess with the origin branch in any way that could mess up the upstream-branch configuration for main, that's why I wanted to keep origin around but re-point it, but I see the argument about idempotency. How does a branch "remember" its upstream branch, is it just by name, or is it messed up after removing the remote and adding a new remote with the same name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing and re-adding the remote breaks the branch upstream configuration of existing branches. set-url
should be as idempotent as remove-add. The main disadvantage of set-url
is if multiple URLs are configured, but we don't expect that here (otherwise the user probably knows how remotes work).
Left as set-url
for now. We'll see if we run into any trouble with it.
Co-authored-by: Niklas Mohrin <dev@niklasmohrin.de>
autocrlf
, instead just enforce it for the repo using a.gitattributes
file. This means that users can no longer easily clone to CRLF if they intend to, but I think it's fair for us to do.-tt
)Open for suggestions regarding the readme content and/or phrasing. You can find the rendered version at https://github.com/richardebeling/EvaP/blob/main/README.md.
TODO:
related to #2072