“Git Dodaj, zatwierdź i pchnij jedno polecenie” Kod odpowiedzi

Git Dodaj komendę push jeden

# The following command does not add new files, only updated pre-existing ones.
git commit -am "commit all the things" && git push
Precious Panda

Git zatwierdź i dodaj jedno polecenie

// first define a new alias for the commands:
git config --global alias.add-commit '!git add -A && git commit'

// and then use it by typing in the message:
git add-commit -m 'My commit message'

//Credit for the original post on stackoverflow.
|_Genos_|

Git Dodaj, zatwierdź i pchnij jedno polecenie

git config --global alias.cmp '!f() { git add -A && git commit -m "$@" && git push; }; f'
Blyxyas

Odpowiedzi podobne do “Git Dodaj, zatwierdź i pchnij jedno polecenie”

Pytania podobne do “Git Dodaj, zatwierdź i pchnij jedno polecenie”

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu