Skip to content

Latest commit

 

History

History

git-get-git-put

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

git get & git put

Synchronize changes for the current branch

Git alias:

get = !git fetch --prune && git pull --rebase && git submodule update --init --recursive
put = !git commit --all && git push

Example:

git get
git put

Our workflow does these steps:

  • git get: fetch and prune, pull and rebase, then update submodules.

  • git put: commit all items, then push.

If you want to preserve merges, then we recommend you set this:

git config pull.rebase preserve

TODO:

  • Handle tags

  • Delete superfluous branches

  • Add error handing

Compare: