-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build): add git commands for makefiles (#46)
- Loading branch information
1 parent
355347a
commit 2da4a5b
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
include build/make/git.mak | ||
|
||
# Lint all the files | ||
lint: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |