If you see it

Live for passion

Tricky Little Notes

Show your remote origin information, including remote-url

1
$ git remote show origin

Pull the newest code from remote branch “master”

1
$ git pull origin master

Discard all local changes

1
$ git reset --hard

Show git config

1
2
3
4
5
$ git config --list  // --global --system --local
OR
$ cat ~/.gitconfig
OR
$ cat .git/config

Comments