Create a symlink from this tracked file to the location Git reads:
ln -sf .gitconfig ~/.gitconfigCreate ~/.gitconfig.local that looks like this:
[user]
email = someaddress@example.comValidate:
echo "Email: $(git config user.email)" && echo "Name: $(git config user.name)"should give:
Email: someaddress@example.com
Name: Mark Wiemer
How to ignore new changes to a tracked file with git
git update-index --assume-unchanged <filename>git update-index --no-assume-unchanged <filename>For tracking images and other binary/non-text files, see Git LFS.
This command prints objects to commit and should include (LFS) to reference the files Git LFS is tracking vs (Git) for files that Git (core) is tracking but Git LFS is not tracking.
git lfs statusAfter first clone of repo:
git submodule update --init --recursiveUpdate all to match current remote:
git submodule update --remoteTo add a new submodule:
git submodule add url relative_pathTo remove a submodule:
git rm path_to_submoduleTo rename a submodule, simply delete it and re-add it in a renamed folder.
git tag tagname
git push --tags
git tag -d tagname
git push --delete remote tagname