2009 shaares
6 private links
6 private links
54 results
tagged
git
Git trailers are a powerful source of metadata as parsed by the Git Interpret Trailers command. Even better, trailers can be applied to commits and tags as documented here
git commit --message "Fixed log format" --trailer "Milestone: patch"
git config user.name "Automated"
git config user.email "actions@users.noreply.github.com"
git add -A
timestamp=$(date -u)
git commit -m "Latest data: ${timestamp}" || exit 0
git push
Manage multiple Git identities
git subtree add --prefix dir git@git.git master
Here is a way to remove non-interactively a specific <commit-id>, knowing only the <commit-id> you would like to remove:
git rebase --onto <commit-id>^ <commit-id>