then local PTID=$(echo "$1" | grep "[0-9]*" -o) # Allow URLs git log --oneline | grep "$PTID" | grep "^[a-z0-9]*" -o | xargs --no-run-if-empty git...
...the command like this: ptcommits 165086636 --stat. Up to three arguments are passed to git show. Example output: commit 048054b1df87576f7c59cc0161cc331c44d2ea6b Author: Foo Bar <foo@bar.com> Date: Fri Apr...
You can also tag deploys, so you can see deployed commits in the git log...
All the hidden and not hidden features of Git and GitHub...
...in succession the overhead starts to add up. If you do a lot of Git pushing and pulling or frequently need to SSH to a dev server, you’ve probably...
git command line options for automating common rebasing tasks, like adding a fix to a commit that was already rebased into the history...
When you are using git rebase and are currently editing a commit (due to a conflict, for example), you may want to know the current commit. [1]\ Luckily, there is...
...lots of useful stuff in the .git directory. Commit hash that you are currently applying cat .git/rebase-merge/stopped-sha Useful if you want to inspect the original commit for its changes, for...
The problem isn't that Git is to hard, it's that smart developers are impatient and have exactly zero tolerance for unexpected behavior in their tools. While Git is...
This bookmarklet grabs a PivotalTracker story title, transforms it into a valid git branch name and automatically prepends your initials and an optional abbreviation (for better tab completion). It will...
...following formats: If you cancel the first dialog or confirm it without entering text: git checkout -b kw/178298638-card-320-state-machines If you enter an abbreviation (e.g. stm in this case):
tig path_to_file_or_files_or_path_with_wildcard
...and the programmed CLI tool. The code has been published for educational purposes on GitHub. The german bachelor's thesis has also been included for download at the end.
...called, the gem Rugged is used to read out the changes as listed in git status, which is sufficient since only file based coverage is used. After that the data...
...they will set it to "Review" on Linear and open a merge request on GitLab. You will receive an e-mail. Now review the code, either directly on GitLab, or...
...it into main yourself: Squash and merge into main Push Delete the branch with git push origin :feature-branch-name Set the corresponding issue to "Merged" Deploy to staging
...install once more Option 3 This should always work. Run bundle update GEMNAME Run git diff Gemfile.lock and notice all the updates you didn't want Revert the unwanted changes...
...other locked gems, it will fail. If you use this option, be sure to git diff your Gemfile.lock to see if the changes are what you expected...
...in any circumstances, you may permit it. Ask someone if you are not sure. Github license pages or tldrlegal.com give a good overview about a license's permissions, limitations and...
Rubygem ntlm-http: bundle exec license_finder licenses add ntlm-http ruby --why https://github.com/trampoline/ntlm-http/blob/9a61eaf20bd93ba035c17a79df0e9c814ffe6f2e/lib/net/ntlm_http.rb Adding a hidden dependency Sometimes there may be a dependency the package manager...
...it to decide whether to confirm or deny: Generally speaking, reversible, reading commands like git diff are allowed while irreversible commands like an rm -rf are prevented. Auto mode will...
It’s pretty common for projects hosted on GitHub to receive “pull requests”: requests from people who have cloned your project, made a modification to it and then asking you...
...good time to upgrade our deployment process. Currently pushing out a new version of GitHub takes upwards of 15 minutes. Ouch. My goal: one minute deploys (excluding server restart time...
...maybe just one!) commits. Each of them should have a green test suite - otherwise git bisect will not work reliably. Remember: if you for some reason have to detangle functionality...
...also symlink AGENTS.md as CLAUDE.md: ln -s AGENTS.md CLAUDE.md Then commit that symlink to Git...
...to install the gem locally on your system and then override the version from git: cd ~/gems/spreewald rvm use 2.5.1 # or rbenv local 2.5.1 # use the ruby version your project...
...has a lockfile (yarn.lock) with exact version numbers. The lockfile should be checked into Git. You never touch the lockfile by hand. You change it with a yarn command instead...
...Guard starts, but we'll take care of that in the next step. Configure git As mentioned above, the esbuild_error_development.txt file must exist for Guard to watch it. [1]
...Git does not offer a way to add a file and ignore further changes, at least not in a way where this information is shared with the upstream repo. With...
Popular command line tools (>= 4 mentions) tig (17 users) Command line UI for git. htop (10 users) An improved "top". fzf (8 users) Provides super-fast fuzzy-finding in...
ag (the silver searcher) (4 users) A much faster grep, that honours your .gitignore. ripgrep (4 users) Another much faster grep, also honouring your .gitignore. bat (4 users)
...you need to upgrade by deleting the existing plugin directory and calling script/plugin install https://github.com/rails/rails_xss.git If you are using the native Rails I18n API, open all your config/locales...