Skip to content

Instantly share code, notes, and snippets.

@idembele70
Last active March 28, 2024 14:44
Show Gist options
  • Save idembele70/447f464d6b6f13a24b507fd4cc1c9500 to your computer and use it in GitHub Desktop.
Save idembele70/447f464d6b6f13a24b507fd4cc1c9500 to your computer and use it in GitHub Desktop.
List of Playmaker Git commands

Create a git lg alias

git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"

Change local commit signature

git config --local user.name <username>
git config --local user.email <email>

Remove a commit

git lg 

image

 git rebase -i <commit-number>

image

  • Replace pick with d or drop. Save your changes & close the editor.
 git push --force-with-lease

Discard Local changes in a file

git restore <filename>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment