Monday, January 27, 2020

GIT useful commands

GIT useful commands

To see all branch

git branch -a

To delete local branch

git branch -d test

To delete remote branch

git push origin --delete test


To reset local merge conflicts
git reset --merge
To update submodules
git submodule update --init


git stash save --keep-index --include-untracked

You don't need to include --include-untracked if you don't want to be thorough about it.

After that, you can drop that stash with a git stash drop command if you like.

or
git clean -df
git checkout -- .
or
just 
git checkout -- .




No comments:

Post a Comment