GIT Cheatsheet

less than 1 minute read

CommandExplanation
git commit --amendAmend last commit, which include the latest staged file.
git commit -m 'rebuild pages' --allow-emptyCommit empty message, it can be useful when you need to trigger a Jenkin build with submodule
git add <something> && git commit Add and commit straight away, another alternative for updating Jenkin with submodule
git remote prune originDelete merged branch in the remote

Categories:

Updated: