I figured out how to make functions for git bash to load in windows using the .bashrc file in my home folder (with the workaround of .bash_profile):
# Example
function cush() {
git add Figures/;
git commit -am "$1"; # Parse string to git
git push;
}
But this function is dedicated to LaTeX and I actually only need to use it when working in specific types of repositories. So my question is whether there is a way to make functions locally, such that it will load upon loading git bash in that specific folder? This motivates functionality that is specific for the repository, just like .gitignore is.