lista comandi git 1/?
This commit is contained in:
parent
002b936de6
commit
434d64f6af
34
Makefile
34
Makefile
|
@ -28,7 +28,8 @@ FILES := $(notdir $(basename $(SRCS)))
|
|||
OBJS := $(addprefix $(OBJ_DIR)/,$(addsuffix .o,$(FILES)))
|
||||
|
||||
|
||||
all: execute
|
||||
all:
|
||||
|
||||
|
||||
execute: linking
|
||||
@ echo execute...
|
||||
|
@ -47,4 +48,33 @@ $(OBJ_DIR):
|
|||
mkdir -p $(OBJ_DIR)
|
||||
|
||||
clean:
|
||||
@ rm -rf $(OBJ)
|
||||
@ rm -rf $(OBJ)
|
||||
|
||||
|
||||
|
||||
# random git command
|
||||
# lista file
|
||||
git_list:
|
||||
git ls-tree -r master --name-only
|
||||
|
||||
# push
|
||||
git_push:
|
||||
git push
|
||||
|
||||
# commint add message
|
||||
_commit: git_commit git_push
|
||||
|
||||
git_commit:
|
||||
read -p "Enter git message: " msg; \
|
||||
git commit -am "$$msg"
|
||||
|
||||
# remove a file only on git, not local
|
||||
_remove: git_rm git_push
|
||||
|
||||
git_rm:
|
||||
git rm --cached $(FILE)
|
||||
|
||||
|
||||
# difference between local and git
|
||||
git_diff:
|
||||
git diff
|
||||
|
|
Loading…
Reference in New Issue