> 'git stash save' now accepts pathspecs. You can use this to create a stash of part of your working tree, which is handy when picking apart changes to turn into clean commits.
I believe there may be a slight error in the GitHub blog post I quoted above: from what I can tell, it's actually the 'git stash push' command that now accepts pathspecs. But either way, still a neat new feature!
The vim-fugitive Gdiff is a really nice interface (imo) and a stash equivalent would be amazing :-)
:Gblame is particularly useful.
I don't use fugitive now but I do make full use of tig. In my .vimrc I have:
nnoremap <leader>gb :echo system("git rev-parse --abbrev-ref @ <bar> tr -d '\n'")<CR>
nnoremap <leader>go :silent !tig<CR>:silent redraw!<CR>
nnoremap <leader>gB :silent !tig blame % +<C-r>=expand(line('.'))<CR><CR>:silent redraw!<CR>
The above solution leaves vim purely for editing, and tig for doing the actual git presentation.Asciinema demo of tig blame: https://asciinema.org/a/4as7ujt8cpnpyx0doyrervatl
Just like fugitive, I can travel back and forth through history. And if I hit q, I'm back in vim.
I have commited with my work credentials to open source projects more times than I can count
Being able to set configs per directory provides a workaround.
Nevertheless, .gitignore should still be the first thing you learn about git :)
I'm surprised that didn't exist already. Several years ago, I worked on a tool to scan SVN merge history and save in a graph database so one could ask this type of question, "Does this branch contain the fix?". Or the opposite, "Which branches do not contain this fix?".
It was a mess because there were 8 million commits in the repo and clients ranged from SVN 1.4 to SVN 1.8 (the server was upgraded too).
It would have made more sense to use git for something like that but it's hard to get thousands of devs to switch.
This allows for finding the last-good rollout tag given a known-bad <commit>. Given a hypothetically bad commit cf5c725, the git version to revert to can be found with this hacky two-liner:
(git tag -l 'v[0-9]*'; git tag -l --contains cf5c725 'v[0-9]*') |
sort | uniq -c | grep -E '^ *1 ' | awk '{print $2}' | tail -n 10
With this new --no-contains option the same can be achieved with: git tag -l --no-contains cf5c725 'v[0-9]*' | sort | tail -n 10
As the filtering machinery is shared between the tag, branch &
for-each-ref commands, implement this for those commands too. A
practical use for this with "branch" is e.g. finding branches which
were branched off between v2.8.0 and v2.10.0: git branch --contains v2.8.0 --no-contains v2.10.0
1. https://github.com/git/git/commit/ac3f5a346860b824e083c5d305...https://sourceforge.net/projects/git-osx-installer/files/?so...
git-scm.com says:
"You are downloading version 2.10.1 of Git for the Mac platform. This is the most recent maintained build for this platform. It was released 7 months ago, on 2016-10-14."
The person you replied to was asking specifically about the native macos packages linked from the git official website.
But that doesn't substitute for making an actual argument, which I notice you have failed to do in any of your replies to other people in this thread.
- There shouldn't be too many nor too few hash algos. Too many: paradox of choice, user confusion and interop overhead. Too few: security monoculture risks being broken by well-funded state actors
- Sane, future-ready default: SHA3-512
Also, git GPG signing should change to signing content, in addition to or instead of, hashes.
- Windows comes with bash
- Microsoft have an excellent openssh implementation on their github
- I don't want some dude's cool $PS1 and shortcuts and icons.
I just want git.
That's an extremely charitable way of phrasing it. 64-bit Windows 10 in developer mode has bash as an optionally installable component. AFAIK, bash is not installed by default and it's unavailable on 32-bit or in older Windows versions.
If you want to allow a wide range of users, including those with corporate- or government-IT issued machines, to run your build, you need to support older Windows versions down to at least 7. Which means that you cannot assume native bash.
I would prefer they just do font-family: monospace