git config --global user.name "Any User"
git config user.name "Any User"
git config --get remote.${REMOTE}.url
git ls-remote --get-url ${REMOTE}
git remote -v
git remote show ${REMOTE}
git remote add -t $RemoteBranchName -f $RemoteNameInTheLocalRepo $RemoteRepoUrl
git fetch $RemoteName +$RemoteBranch:${LocalBranchNameLocatedIn:refs/heads}
git fetch $RemoteName +$RemoteBranch
git remote set-url origin $RepositoryUrl
git ls-remote $RepositoryUrl
git log origin/master ^master
git log master ^origin/master
git log --oneline --graph --decorate
git symbolic-ref HEAD
git symbolic-ref HEAD --short
Revert changes to the working copy.
git checkout .
Revert changes to the index (i.e. add).
git reset
Revert committed changes.
git revert