1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-11-21 20:35:12 +00:00

Update git.sh

This commit is contained in:
plskz 2021-07-01 01:13:11 +08:00
parent f0d26648ae
commit 2021c90140
No known key found for this signature in database
GPG Key ID: 1E4C1BDB1D9E0755

View File

@ -41,6 +41,7 @@ git grep --heading --line-number '<string/regex>' # Find lines matching the patt
git log --grep='<string/regex>' # Search Commit log git log --grep='<string/regex>' # Search Commit log
git commit -m "msg" # commit changes with a msg git commit -m "msg" # commit changes with a msg
git commit -m "title" -m "description" # commit changes with a title and description
git commit --amend # combine staged changes with the previous commit, or edit the previous commit message without changing its snapshot git commit --amend # combine staged changes with the previous commit, or edit the previous commit message without changing its snapshot
git commit --amend --no-edit # amends a commit without changing its commit message git commit --amend --no-edit # amends a commit without changing its commit message
git commit --amend --author='Author Name <email@address.com>' # Amend the author of a commit git commit --amend --author='Author Name <email@address.com>' # Amend the author of a commit