git diff --name-only --diff-filter=U
git merge --abort
git stash
git stash list
git stash apply
git stash pop
git stash apply stash@{1}
git stash clear
git stash drop stash@{1}
git submodule add -b master git@hostname:project.git path/to/where/it/should/go
git submodule init
git submodule update
git add .
git commit -a -m "message"
git push --recurse-submodules=on-demand
this will create a .gitmodules file in your project that looks like this:
[submodule "path/to/where/it/should/go"]
path = path/to/where/it/should/go
url = git@hostname:project.git
branch = master
git submodule update --init
git submodule update --remote
to avoid fetching files use:
git submodule update --remote --no-fetch
git submodule status
git submodule deinit submodulename
git rm submodulename
optionally to leave the files in your working tree
git rm --cached submodulename