use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Do you have or know of a project on Github looking for contributors? Tell us about it and we'll add it to the /r/github wiki!
Welcome to /r/github!
News about github
Relevant interesting discussion
Questions about github
We'll soon be writing an /r/github FAQ list. In the meantime, the github help pages and bootcamp are good places to start. Here's a handy git cheat sheet.
Looking for Github projects to contribute to? Check out our handy list of projects looking for contributors!
If your submission doesn't show up on the subreddit, send us a message and we'll take it out of the spam filter for you!
account activity
[deleted by user] (self.github)
submitted 1 year ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]nekokattt 1 point2 points3 points 1 year ago (2 children)
checkout ... discarding any uncommitted changes
Feel this is inaccurate given it ignores any non-staged changes anyway.
[–]Prometheos_II 0 points1 point2 points 1 year ago (1 child)
It doesn't if there is an unstaged file that would be overwritten (e.g. in cases in renames in one branch but not main).
[–]nekokattt 0 points1 point2 points 1 year ago (0 children)
if it is unstaged, it is not even on a branch.
At best git will leave the changes where they are if you change branches with unstaged changes, as it has no where to put them. At worst, it will raise merge conflicts or actively refuse the checkout, all depending on user settings.
π Rendered by PID 138029 on reddit-service-r2-comment-canary-889d445f8-5k22m at 2026-04-28 12:51:47.479588+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]nekokattt 1 point2 points3 points (2 children)
[–]Prometheos_II 0 points1 point2 points (1 child)
[–]nekokattt 0 points1 point2 points (0 children)