lista comandi git 1/?

This commit is contained in:
Edi De Candido 2023-04-17 19:54:18 +02:00
parent 002b936de6
commit 434d64f6af
1 changed files with 32 additions and 2 deletions

View File

@ -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