Skip to content

Commit

Permalink
feat(build): add git commands for makefiles (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfalkowski authored Mar 24, 2024
1 parent 355347a commit 2da4a5b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include build/make/git.mak

# Lint all the files
lint:
28 changes: 28 additions & 0 deletions build/make/git.mak
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
master:
git checkout master

pull:
git pull --rebase

add:
git add -A

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

# Finish a the feature, bug, etc.
finish: master pull
git brand -D $(name)

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

# Amend the latest changes.
amend: add
git commit --amend --no-edit

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

0 comments on commit 2da4a5b

Please sign in to comment.