deploy: fix checkout to copy all files not from last commit, add link_code