News for hackers. Stuff that matters.
Re:Git password authentication is shutting down by BeefySwain on Thursday August 12, 2021 @05:47PM (#28161973)
I also have found teaching someone how to be even marginally capable of contributing to a Github project from scratch to be a very time consuming and frustrating thing. Think, having your graphics designer able to make commits, or having someone who only wants to update docs.

The worst part is the "easier" solutions are actually just footguns in disguise, as soon as they accidentally click the wrong thing and end up with a detached HEAD, a few commits ahead and behind the REMOTE, and halfway through a botched merge, you have to figure out how to bail them out of that using a GUI you've never actually used. Knowing all this, you either teach them git (high short term pain, high chance of them just giving up immediately) or you tell them to download the first result for "windows foss git gui" and pray that history won't repeat itself.

Re:Git password authentication is shutting down by pjc50 on Thursday August 12, 2021 @05:57PM (#28162077)
The solution that everyone actually uses until they learn the unnecessary details is "take a backup of relevant files and blow away & redownload the repo".
Re:Git password authentication is shutting down by acomjean on Thursday August 12, 2021 @10:42PM (#28164766)
https://ohshitgit.com/

It has a few helpful hints.

Re:Git password authentication is shutting down by omnibrain on Thursday August 12, 2021 @06:06PM (#28162193)
Relevant xkcd: https://xkcd.com/1597/
Re:Git password authentication is shutting down by spicybright on Thursday August 12, 2021 @07:07PM (#28162845)
The hover text is really good for this one too:

> If that doesn't fix it, git.txt contains the phone number of a friend of mine who understands git. Just wait through a few minutes of 'It's really pretty simple, just think of branches as...' and eventually you'll learn the commands that will fix everything.

Re:Git password authentication is shutting down by cstrat on Thursday August 12, 2021 @07:03PM (#28162793)
wait there is another way?
Re:Git password authentication is shutting down by northwest65 on Thursday August 12, 2021 @08:16PM (#28163593)
I've used GitExtensions from the start of my Git usage. I've never had to blow any of my repos away at any point. I also use things like Rebase without thinking about it, something which from what I've read on here is considered a slightly unusual/difficult task.

Using GitExtensions means I can use Git as easily as any other tool, I never give it a second thought. I see the command line commands being executed, but never think about them. The flipside is I'd be knackered if I had to use the command line only.

Re:Git password authentication is shutting down by francislavoie on Thursday August 12, 2021 @09:07PM (#28164036)
I used GitExtension for years, but then I switched to Linux some years ago, so I had to find an alternative. I used SourceTree for a while, but I hated the UX. I tried GitKraken when it first came out, but it had a lot of issues that didn't make it appropriate for my workflow. After a couple more years, GitKraken had improved enough that I was able to switch to it. I've been using it for maybe 4 or 5 years now.
Re:Git password authentication is shutting down by happymellon on Friday August 13, 2021 @02:33AM (#28166114)
The pricing of GitKraken is a little frustrating. 5 pounds a month is quite a hefty price just to be able to use a private repo. Especially since it has not materially changed for my usage, so I would have been much happier giving them the £50 for a single licence.

This is once of those scenarios where subscription for an enterprise might be a thing, but makes no sense for me. The JetBrains model would make sense and I could justify that.

Re:Git password authentication is shutting down by francislavoie on Friday August 13, 2021 @02:37AM (#28166129)
$5/m is honestly peanuts. The amount of value I get from it is way, way more than that. I pay it yearly, like I do for PHPStorm.
Re:Git password authentication is shutting down by happymellon on Friday August 13, 2021 @02:43AM (#28166164)
But if you get no value from PHPStorm you can stop paying for it and you do not lose access unlike a subscription.

You just don't get new features.

My issue is that I do not get £5 worth of value each month from GitKraken. I get value every couple of months, and it is to explain to other people what they are doing wrong rather than direct value for me.

Re:Git password authentication is shutting down by imwillofficial on Friday August 13, 2021 @05:51AM (#28167147)
Then stop paying for it.
Re:Git password authentication is shutting down by happymellon on Friday August 13, 2021 @05:55AM (#28167168)
Stop paying for what? I don't pay for GitKraken because I can't justify subscribing to software that doesn't materially change.

The risk is that they have to keep "doing stuff" to justify a subscription and we will end up with a new email client.

Re:Git password authentication is shutting down by imwillofficial on Friday August 13, 2021 @03:33PM (#28173490)
Hahahahahahaha
Re:Git password authentication is shutting down by carlhjerpe on Thursday August 12, 2021 @09:55PM (#28164389)
GitKraken is amazing, I'm a happy customer through work. makes me happy when electron apps aren't crap.
Re:Git password authentication is shutting down by redler on Thursday August 12, 2021 @10:37PM (#28164718)
“Tower” is quite good. Highly recommended.
Re:Git password authentication is shutting down by easygenes on Thursday August 12, 2021 @11:08PM (#28164947)
MacOS and Windows only
Re:Git password authentication is shutting down by chaorace on Thursday August 12, 2021 @08:39PM (#28163789)

    git stash
    git reset --hard master
    git pull
    git stash pop
Re:Git password authentication is shutting down by DangitBobby on Thursday August 12, 2021 @08:50PM (#28163878)
Uh oh, you've now merged remote master into your local master which was two commits ahead and 3 behind!

My git config has fast-forward only for pulls and I habitually use --ff-only for any pull :)

Re:Git password authentication is shutting down by jcrites on Thursday August 12, 2021 @09:09PM (#28164071)
The command you want is "git pull --rebase". There are configuration settings to make "git pull" rebase by default, and I'd recommend always turning that on that default (which may be by why the person above omitted it from his pull command).

I actually thought "git pull" did "git pull --rebase" by default (this may be what you get from running `git --configure` without modifications?), but maybe I've just been configuring it that way. You can achieve this in your global Git configuration by setting "pull.rebase" to "true".

I don't think it's sane behavior for "git pull" to do anything else besides rebase the local change onto the upstream branch, so I'm surprised it's not the command's default behavior. Has the project not changed the CLI for compatibility reasons or something?

When do you ever want a "git pull" that's not a rebase? That generates a merge commit saying "Merge master into origin/master" (or something similar) which is stupid. If you really want to use actual branches for some reason, that's fine, but "merge master into master" commits are an anti-pattern that if I ever see in a Git repository I'm working on or responsible for, results in me having a conversation with the author about how to use Git correctly.

Re:Git password authentication is shutting down by DangitBobby on Thursday August 12, 2021 @09:39PM (#28164284)
I actually don't want to rebase. Rebase can rewrite your local history and make it impossible for you to push without doing a force push (or some other more complicated manuevering). The only time pull with rebase is okay (on a shared branch such as master) is when you know that your local branch is strictly behind remote. That's exactly what --ff-only does. It rebases only if you are behind remote, and declines to do so if you are ahead so you can sort your shit out without rewriting history.
Re:Git password authentication is shutting down by jcrites on Thursday August 12, 2021 @09:55PM (#28164396)
If "git pull --rebase" succeeds without reporting a merge conflict, then it's tantamount to having executed the command with "--ff-only".

I believe you are incorrect however. "git pulll --rebase" will not ever rewrite history from the origin repository. It will only ever modify your local unpublished commits to account for new commits from the origin branch. If your change and the new commits from origin aren't touching the same lines or files, then the update is seamless [1].

If there is a conflict because your change and a new commit from origin both changed the same line in the same file, this can result in a merge commit that you need to resolve. But you resolve this locally, by updating your (unpushed, local) commit(s) to account for the new history. When you complete the merge, it will not show up as a merge commit in the repository -- you will simply have simply amended your local unpublished commit(s) only to account for the changes in upstream, and you will have seen every conflict and resolved each one yourself. When the process is complete, and you've resolved the merge, you'll have a nice linear branch where your commit(s) are on the tip of the origin branch.

The flag "--ff-only" basically just means "refuse to start a local merge while performing this operation, and instead fail".

Because of the potential for these merge conflicts, it's a best practice to "git pull" frequently, so that if there are conflicts you can deal with them incrementally (and possibly discuss the software design with coworkers/project partners if the design is beginning to diverge -- and so people can coordinate what they're working on and try to stay out of each other's way), instead of working through a massive pile of conflicts at the end of your "local 'branch'" (i.e. the code in your personal Git repo that constitutes unpushed commits to the upstream branch).

Additionally, all of the central Git repositories I've worked in in a professional context were also configured to disallow "git push --force" (a command that can rewrite history), for all "real" branches. These systems gave users their own private Git repo sandbox (just like you can fork a repo on GitHub) where they can force push if they want to (but is backed up centrally like GitHub to avoid the loss of work). This personal repo was very useful for saving my work. I was in the habit of committing and pushing to the private repo about once every 30m-1h (to eliminate the chance of major work loss due to hardware failure). Almost always I'd squash all of these commits into one before rebasing onto master, so that the change comes in as a single commit, unless it would be too large to review.

In the occasional circumstances where I've legitimately needed to rewrite history for some reason -- say credentials got into the repository, or someone generated one of these "merge master into master" commits -- then I would change HEAD from master to another branch, delete master, and then recreate it with the desired state. (And even that operation would show up in the system's logs, so in the case of something like credentials you'd additionally contact the security or source control team to make sure the commit objects containing the credentials were actually deleted out of the repo history completely, including stuff you can find only via the reflog.) Then contact the team working on the repo to let them know that you had to rewrite history to correct a problem.

I would recommend disabling "git push --force" for all collaborative projects. If you're operating the repository, you can do this by invoking "git config --system receive" and setting "denyNonFastForwards true". In GitHub there's probably a repository setting switch somewhere.

Once professional software engineers start working with Git all day long, they quickly get past the beginner stage and the need to do this kind of stuff is very rare.

[1] It doesn't mean the software will work though, even if both changes would have worked in isolation. You still need to inspect and test the results of "git pull (--ff-only)", since even if there are no conflicts like commits that modify the same lines as yours, or there are conflicts that Git can resolve automatically, it's possible for the resultant software logic to be defective, since Git has no semantic understanding of the code.

Re:Git password authentication is shutting down by Hello71 on Thursday August 12, 2021 @10:28PM (#28164654)
> If "git pull --rebase" succeeds without reporting a merge conflict, then it's tantamount to having executed the command with "--ff-only".

this is not correct. git rebase, as with git merge, will automatically resolve conflicts using a 3-way merge algorithm.

> It will only ever modify your local

this is correct.

> unpublished commits

this is not correct. git rebase (in its default mode) rebases all commits that are not upstream onto the upstream. it has nothing to do with whether they are published or not. if you have a published feature branch, and git pull --rebase into it, git rebase will dutifully rebase all your commits.

Re:Git password authentication is shutting down by account42 on Friday August 13, 2021 @05:41AM (#28167087)
> I was in the habit of committing and pushing to the private repo about once every 30m-1h (to eliminate the chance of major work loss due to hardware failure).

I get pushing every day, but how unreliable does your PC have to be if you feel you need to push every hour???

> (And even that operation would show up in the system's logs, so in the case of something like credentials you'd additionally contact the security or source control team to make sure the commit objects containing the credentials were actually deleted out of the repo history completely, including stuff you can find only via the reflog.)

You can't un-leak credentials. The only valid action for leaked credentials is to invalidate them, not to pretend that they were never leaked.

Re:Git password authentication is shutting down by TomSwirly on Friday August 13, 2021 @01:10PM (#28171630)
> how unreliable does your PC have to be if you feel you need to push every hour???

Hey, I commit and push on a branch on my fork of the repo every time my unit tests work and sometimes if they don't.

It's a single command, `gi`. My joke is "commit/push is the new save" though I'm not that bad...

No one but me has to see that branch. I rely on my rebasing skills and a library of git tools to produce a small number manicured commits out of it with no work.

It works so well. For one, if I am going from one machine to another, I can literally work and then step off my machine and continue on the other with a pull but no interruption.

At any time, I can just send someone a question with a permalink to the code as it was at that moment, and keep working while waiting for the answer.

I never have much uncommitted work in the current branch, so I can almost immediately start a new bugfix in an emergency.

> The only valid action for leaked credentials is to invalidate them,

Quoted for truth.

Re:Git password authentication is shutting down by westurner on Thursday August 12, 2021 @10:23PM (#28164606)
`git pull --rebase` usually is what I need to do. To save local changes and rebase to the git remote's branch:

  # git branch -av;
  # git remote -v;
  # git reflog; git help reflog; man git-reflog
  # git show HEAD@{0}
  # git log -n5 --graph;
  git add -A; git status;
  git stash; git stash list;
  git pull --rebase;
  #git pull --rebase origin develop
  # git fetch origin develop
  # git rebase origin/develop
  git stash pop;
  git stash list;
  git status;
  # git commit
  # git rebase -i HEAD~5 # squash
  # git push
HubFlow does branch merging correctly because I never can. Even when it's just me and I don't remember how I was handling tags of releases on which branch, I just reach for HubFlow now and it's pretty much good.

There's a way to default to --rebase for pulls: is there a reason not to set that in a global gitconfig? Edit: From https://stackoverflow.com/questions/13846300/how-to-make-git... :

> There are now 3 different levels of configuration for default pull behaviour. From most general to most fine grained they are: […]

  git config --global pull.rebase true
Re:Git password authentication is shutting down by DangitBobby on Friday August 13, 2021 @12:03AM (#28165300)
> "git pulll --rebase" will not ever rewrite history from the origin repository. It will only ever modify your local unpublished commits to account for new commits from the origin branch.

After reading more about it, you are right about that. It will only apply your commits to the tip of remote.

Re:Git password authentication is shutting down by Hello71 on Thursday August 12, 2021 @10:23PM (#28164615)
as far as i can tell there's no git --configure. you may be confusing it with Xorg -configure, which is (very) obsolete and shouldn't be used.
Re:Git password authentication is shutting down by francislavoie on Thursday August 12, 2021 @09:02PM (#28163994)
Yeah. "git pull" is so bad. I wish it didn't exist. Every single time a coworker has gotten into a stuck state is because they used "git pull" which made a merge commit when there shouldn't have been one. It's mostly stopped happening since I yelled at everyone to _please_ configure their machine with ff-only.
Re:Git password authentication is shutting down by vetrom on Friday August 13, 2021 @12:06PM (#28170715)
Invest in (or build?) an enterprise content management system for people that don't, for whatever reason, think of SCM in terms of commits, branches, and graphs.

If you can make one that thinks in terms of git on the backend, great.

If you want to go a bit further, you could expose the underlying operations to the user. You will need to get them to reason around and interact with the minimal requirements inherent to a versioning system, namely explicit versioning and an explicit commit process, along with explicit merging and conflict resolution.

There are GUI clients that help with some of this, but you're not going to get away from some concept of dealing with branches and merges in any SCM. You hear about it less often, but you'd have the same troubles dealing with a chewed up repository in Perforce, ClearCase, or the like.

(edit: even Subversion!)

Re:Git password authentication is shutting down by prepend on Thursday August 12, 2021 @09:22PM (#28164177)
I just have non-devs use the browser interface and this seems to work for text edits and image uploads and stuff.

And some statisticians and stuff only know how to use the GitHub desktop client and that works ok for 99% of them. Drives me crazy because I only use cli and struggle to help when they get blocked with the client.

Re:Git password authentication is shutting down by jagger27 on Thursday August 12, 2021 @09:29PM (#28164223)
The cynic in me says they’re taking advantage of the fact that the web UI is a lower friction experience to drive more people towards Codespaces (which are not cheap, by the way).
Re:Git password authentication is shutting down by prepend on Friday August 13, 2021 @05:56PM (#28175070)
Perhaps, but GitLab had a browser ide earlier, and I think theirs is better. So it’s more likely to just be normal GitHub v GitLab feature competition.
Re:Git password authentication is shutting down by IfOnlyYouKnew on Friday August 13, 2021 @06:58AM (#28167495)
Maybe you could tell your cynic that web Interface are intrinsically easier for people used to them, and that for GitHub, the difference hasn’t changed since times when Codespaces neither existed nor were even planned.
Re:Git password authentication is shutting down by u801e on Friday August 13, 2021 @01:23AM (#28165738)
> I also have found teaching someone how to be even marginally capable of contributing to a Github project from scratch to be a very time consuming and frustrating thing. Think, having your graphics designer able to make commits, or having someone who only wants to update docs.

The question really should be why do we want to use git for version control when people really want an backup system where they can essentially update files by uploading a new version of the file.

Re:Git password authentication is shutting down by b3morales on Friday August 13, 2021 @01:21PM (#28171773)
Frontend developers really like their designers to have versions, because it handles the eternal:

Designer: Hey, I filed a bug for this, it doesn't look like the design. <screenshot of design they changed yesterday>

Developer: Um, we released that like two weeks ago; it's correct according to the design I had at the time.

Designer: Yeah, but this is the design <link to continuously updated document in web editor with no history> Maybe you can just fix it really quick today?

Doesn't have to be git, but some way to match up releases to the design document that was current at that time is quite useful.

Re:Git password authentication is shutting down by u801e on Saturday August 14, 2021 @01:28PM (#28182401)
A timestamp would be sufficient in that case. If you think of most editors and word processors, they have undo and redo features that allow users to go back and forth in terms of the history of their edits. Those features normally don't support branches and if you make a change in the middle of a redo, you lose access the rest of the other redo steps.

So you could tell the designer that you have the version they sent you on Friday August 13, 2021 at 3:12 PM EDT. Did they make any changes after that, or did they mean to send you a version they made prior to that?

Re:Git password authentication is shutting down by happymellon on Friday August 13, 2021 @02:38AM (#28166135)
Especially when they use tools that make files that contain all the history through "non-destructive changes" anyway.

But I think the reason is because the mess of folders they then create in DropBox and they can never find their files.

What would be great is if someone could make a TimeMachine for non-developers that uses git, because that is what they are doing in their heads anywy.

Re:Git password authentication is shutting down by u801e on Saturday August 14, 2021 @01:33PM (#28182448)
Most editors and word processors, along with other applications have undo and redo features that allow them to do that. If that could be tied with a timestamp, then it would be easy to see what version of the file they're working with. The only other feature they may find useful is a way to add a note to the file they saved indicating what changed (which would be the equivalent to a commit message).

Integrating those file(s) as a submodule or subtree in a git repository would work on the development side, but people who generate those files would have no need to interface with git, and people who use git would not need to use the editor for those files to get the history they need.

Re:Git password authentication is shutting down by francislavoie on Thursday August 12, 2021 @08:59PM (#28163972)
I've successfully gotten non-devs to use Git via GitKraken. Its interface is simple, but doesn't hide anything. Harder to make mistakes because it actually shows you what's going on, and even has an "Undo" button which lets you back out of mistakes most of the time.
Re:Git password authentication is shutting down by tmm84 on Thursday August 12, 2021 @09:31PM (#28164236)
When I was just starting out with git and hadn't really learned enough of the more advanced workflows in git I really wanted gitkraken. Much like the jetbrains software it has a license requirement so that can be a turn-off but if you're trying to teach git in a visual way on teaching projects this software is great.
Re:Git password authentication is shutting down by francislavoie on Thursday August 12, 2021 @09:36PM (#28164269)
It's free for open source work, and you can sign up as a student if you're still in school to get it for free for a while.

But yeah, I pay for it now because it's such a significant time saver for my day-to-day. I'm always aware of what my coworkers are doing because it auto-fetches every minute. I use it for code review as well, because I find it really easy and snappy to navigate file changes in a commit (I always use split view, and I almost always have "hide whitespaces changes" on). I has a great interface for interactive rebases as well, allowing to drag to reorder commits, etc. Good built-in merge conflict resolution tool.

Re:Git password authentication is shutting down by oldsecondhand on Friday August 13, 2021 @03:26AM (#28166401)
Sourcetree has a quite usable free version, I found it very useful as a beginner but haven't used it in the last 4 years.
Re:Git password authentication is shutting down by Jipazgqmnm on Friday August 13, 2021 @02:13AM (#28165990)
Re:Git password authentication is shutting down by post-it on Thursday August 12, 2021 @06:03PM (#28162149)
> Think, having your graphics designer able to make commits, or having someone who only wants to update docs.

GitHub's web interface is pretty good for this.

Re:Git password authentication is shutting down by cxr on Thursday August 12, 2021 @08:23PM (#28163660)
Not really. People say stuff like this, but what they're really talking about is their own familiarity with GitHub (in the vein of <http://lighttable.com/2014/05/16/pain-we-forgot/>).

What GitHub has going for it is that it is familiar to ("a majority of"?) working developers, and that it's better than both the competition and the Git CLI itself, but from a reality-adjusted perspective, GitHub is pretty bad, too. (Then when people like me make comments like this, others wrongly infer that it comes from a history of false starts and firsthand frustration, unable to conceive that anyone would speak up on this sort of thing if there weren't something personal at stake; no way that it could just be the result of empathy for the uninitiated.)

It's pretty tragic that we've basically killed wikis —like, actual wikis—and regressed back to directories of text files managed by version control systems originally meant for handling program source code. That people then go on to call these wikis is basically an insult to history.

52028d35999a481e7cb19b14eae3bf66cb7c9c4fe2e15b56b55f3ccadffeee1f

Re:Git password authentication is shutting down by javajosh on Thursday August 12, 2021 @08:41PM (#28163806)
Interestingly, Microsoft has a product called TFS that has a great wiki implementation: it's native markdown (with github enhancements), a decent in-browser editor/viewer, and it's backed by git. Plus it has some nice features that let you refer to people with the at-symbol (@) and work items (bugs, tasks, stories, features, etc) with a hash symbol (#), and some other stuff. Github itself has some of these features; I'm not aware of anything else like it (Tiddlywiki, ignoring it's unusual runtime, may be the closest that I'm aware of).
Re:Git password authentication is shutting down by prepend on Thursday August 12, 2021 @09:24PM (#28164195)
I disagree. I think TFS is an abortion geared around project managers with dev features bolted on. The wiki is ok if you’ve never used other products and their optimizations require an understanding of TFS’ project management suite. I’ve never been able to teach non-TFSers how to use the wiki who don’t commit to learning TFS.
Re:Git password authentication is shutting down by javajosh on Thursday August 12, 2021 @09:41PM (#28164301)
Yes, TFS is overall a survelleince produce for managers. However, that has nothing to do with the wiki implementation included with it, which is quite good. Don't throw the baby out with the bathwater.
Re:Git password authentication is shutting down by prepend on Thursday August 12, 2021 @10:11PM (#28164513)
I found it hard to use for the primary goal of a wiki: allow contributors to contribute. Wikis need diverse SMEs and it was hard to get SMEs to understand how it worked well enough to contribute and edit content, much less organize. Was able to do this with confluence, mediawiki, and tons of other wiki sites
Re:Git password authentication is shutting down by bostonsre on Thursday August 12, 2021 @08:39PM (#28163794)
I mean you could have stuff that requires prs, but you could just use the ui pretty much like a wiki.

1. Go to dev branch

2. Find file and edit it

3. Commit change

Re:Git password authentication is shutting down by cxr on Friday August 13, 2021 @02:03PM (#28172234)
That's not "pretty much like a wiki". That's the antithesis of a wiki. You've just described what the wiki was created to replace.
Re:Git password authentication is shutting down by bostonsre on Tuesday August 17, 2021 @05:01PM (#28214808)
That seems a little drastic, how is it the opposite of a wiki?

What are the steps to edit a wiki? Click edit page, make changes, add comment and submit. That sounds like almost the exact same steps to me.

Re:Git password authentication is shutting down by cxr on Wednesday August 18, 2021 @12:44PM (#28223776)
Try actually measuring it. Fix the 404 link:

https://github.com/solid/solid-rest

(It's the only link in the file.)

Make sure you don't have your thumb on the scale.

Re:Git password authentication is shutting down by cxr on Friday August 20, 2021 @04:42PM (#28251176)
The unwillingness to venture into territory that would make the previous claims quantifiable (and falsifiable) is noteworthy.

    $ sha256sum "./PR?-ORLY.txt" 
    52028d35999a481e7cb19b14eae3bf66cb7c9c4fe2e15b56b55f3ccadffeee1f  ./PR?-ORLY.txt
    $ cat "./PR?-ORLY.txt" 
    Did you commit to source control and submit a pull request to post this comment?
Re:Git password authentication is shutting down by the8472 on Thursday August 12, 2021 @06:22PM (#28162348)
Until you need them to rewrite history because it consists of 20 "fix" and "update" commits.
Re:Git password authentication is shutting down by WorldMaker on Thursday August 12, 2021 @06:57PM (#28162722)
Then don't need them to rewrite history? That's kind of on you and your own OCD at that point. If you are making them use a PR workflow anyway, become friends with git options like using --first-parent to shallowly traverse the DAG and let git's tools give you a clean view. (Or use GitHub's PR Squash options, if you really must rewrite history.)
Re:Git password authentication is shutting down by OJFord on Thursday August 12, 2021 @07:02PM (#28162774)
Someone that does that isn't going to meaningfully rewrite the history anyway, just squash on merge.
Re:Git password authentication is shutting down by westurner on Thursday August 12, 2021 @10:13PM (#28164526)
Re:Git password authentication is shutting down by WhyNotHugo on Friday August 13, 2021 @12:06PM (#28170713)
Yup, most git UIs or wrappers help someone do the most basic operations without learning any git.

The problem is, as soon as someone needs any of the non-basic operations, they're completely stuck, and have to start out by learning the basics (which they've managed manged to avoid so far).

Plus, each implementation makes up its new terms and abstractions.

Re:Git password authentication is shutting down by pbhjpbhj on Thursday August 12, 2021 @06:56PM (#28162700)
Edit: user post-it already said this, sorry.

I'm not experienced here, but is using the GitHub website perhaps the easiest way to submit a PR, that's how I first did it and I think it worked ... I've only really used git privately and for pulling code from public projects.

Re:Git password authentication is shutting down by matkoniecz on Friday August 13, 2021 @03:05AM (#28166290)
> The worst part is the "easier" solutions are actually just footguns in disguise, as soon as they accidentally click the wrong thing and end up with a detached HEAD, a few commits ahead and behind the REMOTE, and halfway through a botched merge

Is graphic designer even going to be able to merge things in their files?

It seems that "overwrite my files by data in repository" "apply my changes with message" are all what is necessary? Or is it case of multiple nontechnical people editing files together and expecting to merge changes?

Re:Git password authentication is shutting down by BeefySwain on Friday August 13, 2021 @02:56PM (#28172909)
Git merges by default when you pull, for one.

Another extremely common pain is trying to "delete" a local commit.

Re:Git password authentication is shutting down by ducktective on Friday August 13, 2021 @01:55AM (#28165896)
I can vouch for this TUI interface for git: https://github.com/jesseduffield/lazygit
Re:Git password authentication is shutting down by spockz on Friday August 13, 2021 @03:14AM (#28166351)
I suppose contributing is easier with the built-in vs code editor now? (Press `.` when logged in.)

The only thing lacking is public code spaces. I can’t even try them out without paying for GitHub Teams or GitHub Enterprise.

Re:Git password authentication is shutting down by stinos on Friday August 13, 2021 @03:29AM (#28166425)
I suppose contributing is easier with the built-in vs code editor now? (Press `.` when logged in.)

Wow, never heard about this (ok I don't follow all possible tech news), but why is this not clearly advertised on github itself? Looks pretty neat and seems to work fine (for what it offers) as well.

Re:Git password authentication is shutting down by wereHamster on Friday August 13, 2021 @05:47AM (#28167128)
Wow, didn't know that shortcut existed.

I can't find `.` on this page: https://docs.github.com/en/get-started/using-github/keyboard...

Re:Git password authentication is shutting down by jshmrsn on Thursday August 12, 2021 @07:28PM (#28163078)
This is painfully accurate at every step you outlined.
Re:Git password authentication is shutting down by jackcviers3 on Thursday August 12, 2021 @09:02PM (#28163998)
I weep for the world now that git is too difficult to understand.

It used to explain itself through building your own version of git. You have a file named hash that tracks changes on each file named foo... now all the changes are in a directory named hash...now your changes have to be merged with others...

It's kind of up there with next steps after if then else fi. Some things will always be difficult, but diffs and commit and picking one of two possible diffs from two windows should not be one of them.

Re:Git password authentication is shutting down by Bigpet on Friday August 13, 2021 @12:05AM (#28165310)
The issue is not really the base concept. It's layering a huge amount of concepts on top of it.

Just think of the "places" a change can be in (technically most of these are just labels on the tree, but they have separate commands to deal with them).

Remote, Index, working copy, staging area, stash, branches.

Those are the ones involved in the simples way I know how to make the smallest change. When you get up to stuff like submodules, LFS, subtrees then I very much understand when people get frustrated. All most of them wanted is a slight improvement over copying a folder they named myproject_v23 to a network drive.

Re:Git password authentication is shutting down by hulitu on Friday August 13, 2021 @01:17AM (#28165715)
How about "put your files in this folder then double click this icon (shell script ) ?