Skip to content

Instantly share code, notes, and snippets.

View mustafmst's full-sized avatar
:octocat:
Learning new things

Pawel Mstowski mustafmst

:octocat:
Learning new things
View GitHub Profile
@mustafmst
mustafmst / .gitconfig
Last active December 19, 2023 11:20
My git aliases
[alias]
# Create new branch and push it to origin to have reference
bn = "!f(){ git cob \"$1\"; git push --set-upstream origin \"$1\";};f"
# Add interactively, commit with message and push
aicp = "!f(){ git ai; git cim \"$1\"; git ps;};f"
# Add all, commit with message and push
acp = "!f(){ git aa; git cim \"$1\"; git ps;};f"
# Commit with message
cim = "!f(){ git ci -m \"$1\";};f"
# Add current changes and stash them