Skip to content

Commit

Permalink
feat(build): add ability to follow conventional commit standards (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfalkowski authored Mar 25, 2024
1 parent b7532c8 commit ccc8467
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions build/make/git.mak
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
BRANCH=$(shell git branch --show-current)

master:
git checkout master

Expand All @@ -7,15 +9,23 @@ pull:
add:
git add -A

# Start a new feature, bug, etc.
new: master pull
git checkout -b $(name)
# Start a new feature.
new-feature: master pull
git checkout -b "feat/$(name)"

# Start a new fix.
new-fix: master pull
git checkout -b "fix/$(name)"

# Finish a the feature, bug, etc.
# Start a new fix.
new-build: master pull
git checkout -b "build/$(name)"

# Finish the current chane.
done: master pull
git branch -D $(name)
git branch -D $(BRANCH)

# Sync the current feature, bug, etc.
# Sync the current change.
sync:
git fetch && git rebase origin/master

Expand All @@ -29,7 +39,10 @@ commit: add

# Push the latest changes.
push:
git push -f origin $(name)
git push -f origin $(BRANCH)

# Commit and push
commit-push: commit push

# Sync and push
sync-push: sync push

0 comments on commit ccc8467

Please sign in to comment.