-
Notifications
You must be signed in to change notification settings - Fork 480
Code Organization/Concepts: Fixed a scoped variable collision in the las... #586
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
Conversation
…last code example. Ref #585
Looks fine, but I'm wondering if it doesn't make things difficult for beginners. |
@arthurvr while the site does have a majority of beginner topics this is one of those topics that could be considered intermediate to advanced. With that said if you think there is a way to improve the example please open a new issue. This PR fixes a broken code example so it works. @gnarf I just realized while writing this comment that I submitted this on my new work computer which I think has my work email address configured. Do I need to sign the CLA with that new email address? |
Or ammend your commit with |
That's a great tip for before I push ... but I pushed already. I'll close this PR and create a new one with the right author email. |
why? You could force push this one. $ git checkout <right branch>
$ git commit --amend --author "<your info>"
$ git push -f |
You should also set your config for the individual repos so this doesn't happen again. |
I was wondering if you could do that...can you point me to some info on how to do that? |
See @arthurvr's comment: #586 (comment). Though I would warn against |
That just amends the commit not the individual repo like you suggested through right? |
To set another |
Correct. I would suggest: git config user.name "<full name>"
git config user.email "<email address>"
git commit --amend --reset-author
git push -f <remote> issue-585 Though since you've already sent a new PR, just run the first two commands (or presumably just the email, since you don't need to change your name). You can repeat that for each repo that shouldn't use the info from your global git config. |
Seems like you can do it without using the global flag for just a single repo https://help.github.com/articles/setting-your-email-in-git/ |
Well at least I learned something today. Thanks @arthurvr & @scottgonzalez |
...t code example.
Ref #585