Git Stash

Fri 06 August 2021

If you just quickly want to create a temporary stash:

git stash
# .. do your thing
git stash pop

This create and applies a stash, if you want to manage multiple stashes however, the following process is recommended:

[A] Create stash

git stash push -m "stashname"

Or simply use git stash …

Category: Git

Read More

Git Submodules

Fri 06 August 2021

Add a submodule

You can add either a HTTPS or SSH URL (SSH is most convenient) E.g. for github an HTTS URL looks like: https://github.com/... and SSH URL looks like: git@github.com:.... The URL can be picked from the github UI (Code button dropdown box).

git …

Category: Git

Read More

Git LFS

Sun 27 June 2021

First you need a .gitattibutes files in your repository. This is where the LFS file patterns are stored.

:::sh touch .gitattributes

Now lets start tracking *.gz files as LFS.

git lfs track "*.gz"

This tells git-lfs to track all files matching the .bin pattern. The quotes around the *.bin are …

Category: Git

Read More
Page 1 of 1