Solved I need a detailed doc about how to use pkg.

Selecting a mirror is done automatically, pkg.freebsd.org automatically resolves to a nearest mirror. It's geolocation aware.
 
This how you can search the manual pages by topic/keyword, the magic command is apropos(1):

Code:
freebsd10 ~ % apropos repository
git-archimport(1)  - Import an Arch repository into Git
git-cat-file(1)  - Provide content or type and size information for repository objects
git-clone(1)  - Clone a repository into a new directory
git-commit(1)  - Record changes to the repository
git-config(1)  - Get and set repository or global options
git-fetch(1)  - Download objects and refs from another repository
git-fetch-pack(1)  - Receive missing objects from another repository
git-gc(1)  - Cleanup unnecessary files and optimize the local repository
git-http-fetch(1)  - Download from a remote Git repository via HTTP
git-http-push(1)  - Push objects over HTTP/DAV to another repository
git-init(1)  - Create an empty Git repository or reinitialize an existing one
git-init-db(1)  - Creates an empty Git repository
git-instaweb(1)  - Instantly browse your working repository in gitweb
git-ls-remote(1)  - List references in a remote repository
git-pack-refs(1)  - Pack heads and tags for efficient repository access
git-parse-remote(1)  - Routines to help parsing remote repository access parameters
git-pull(1)  - Fetch from and integrate with another repository or a local branch
git-receive-pack(1)  - Receive what is pushed into the repository
git-repack(1)  - Pack unpacked objects in a repository
git-send-pack(1)  - Push objects over Git protocol to another repository
git-show-ref(1)  - List references in a local repository
git-subtree(1)  - Merge subtrees together and split repository into subtrees
gitrepository-layout(5)  - Git Repository Layout
pkg-repo(8), pkg repo(8) - create a package repository catalogue
pkg-repository(5), package repository(5) - format and operation of package repositories used by pkg(8)
pkg-search(8), pkg search(8) - search package repository catalogues
perlgit(1)  - Detailed information about git and the Perl repository
perlrepository(1)  - Links to current information on the Perl source repository
 
Back
Top