git clone --depth 1 --branch <tag_name> <repo_url>
--depth 1
is optional but if you only need the state at that one revision, you probably want to skip downloading all the history up to that revision.
Related Posts:
- What is git tag, How to create tags & How to checkout git remote tag(s)
- Git: Message ‘src refspec master does not match any’ when pushing commits in Git
- Git: Message ‘src refspec master does not match any’ when pushing commits in Git
- How to delete a remote tag?
- How do I clone a specific Git branch? [duplicate]
- Git: Message ‘src refspec master does not match any’ when pushing commits in Git
- How do you push a tag to a remote repository using Git?
- Create a tag in a GitHub repository
- Download a specific tag with Git
- Clone A Private Repository (Github)
- Git how to clone with SSH key, username
- How do I clone a single branch in Git?
- How to clone git repository with specific revision/changeset?
- How do you clone a Git repository into a specific folder?
- Git clone verbose output?
- How to get Git to clone into current directory
- How to get Git to clone into current directory
- How do I clone a subdirectory only of a Git repository?
- How to create a new branch from a tag?
- Git push requires username and password
- How do I check out a remote Git branch?
- What does ‘–set-upstream’ do?
- What does ‘–set-upstream’ do?
- What is the best (and safest) way to merge a Git branch into master?
- Squash my last X commits together using Git
- Git merge hotfix branch into feature branch
- Git submodule update
- How to apply a patch generated with git format-patch?
- What does ‘git merge –abort is equivalent to git reset –merge when MERGE_HEAD is present.’ of Git merge man page mean?
- Abort a Git Merge
- Updates were rejected because the tip of your current branch is behind its remote counterpart
- Git : fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists
- Remove files from Git commit
- How to solve SSL certificate: self signed certificate when cloning repo from github?
- How do I revert a Git repository to a previous commit?
- git checkout a single file from another branch and put in different folder
- Update Git branches from master
- How to revert multiple git commits?
- Stash only one file out of multiple files that have changed with Git?
- Create a branch in Git from another branch
- How do I fix a Git detached head?
- What is HEAD in Git?
- Why does git say “Pull is not possible because you have unmerged files”?
- What are the differences between git remote prune, git prune, git fetch –prune, etc
- How can I git stash a specific file?
- How to get the current branch name in Git?
- How can I git stash a specific file?
- Move the most recent commit(s) to a new branch with Git
- What does “Git push non-fast-forward updates were rejected” mean?
- How do I diff the same file between two different commits on the same branch?
- You have not concluded your merge (MERGE_HEAD exists)
- How to get the current branch name in Git?
- Git – Ignore node_modules folder everywhere
- Git error on commit after merge – fatal: cannot do a partial commit during a merge
- Is there a “theirs” version of “git merge -s ours”?
- Meaning of the GitHub message: push declined due to email privacy restrictions
- Is there a command to undo git init?
- How to undo ‘git reset’?
- Download a single folder or directory from a GitHub repo
- Is there a “git touch” so I can push the same file with a new timestamp?
- Branch from a previous commit using Git
- Hard reset of a single file
- Hard reset of a single file
- How to remove remote origin from a Git repository
- Not a valid object name: ‘master’
- .gitignore and “The following untracked working tree files would be overwritten by checkout”
- git add remote branch
- How do I copy a version of a single file from one Git branch to another?
- Git: cannot checkout branch – error: pathspec ‘…’ did not match any file(s) known to git
- Heroku: How to change a Git remote on Heroku
- Invalid VCS root mapping – 3 errors on my project
- Updates were rejected because the remote contains work that you do not have locally
- Undoing a ‘git push’
- What’s the significance of the “No newline at end of file” log?
- What is the difference between pull and clone in git?
- how to reset develop branch to master
- “fatal: HttpRequestException encountered.” Error with GitHub/Bitbucket Repositories due to dropping TLS-1.0 support
- Git’s local repository and remote repository — confusing concepts
- How do I set up Eclipse/EGit with GitHub?
- Repository size limits for GitHub.com
- How do i git push specific branch?
- fatal: could not read Username for ‘https://github.com’: No such file or directory
- How can I see which Git branches are tracking which remote / upstream branch?
- How can I move a tag on a git branch to a different commit?
- Could not create work tree dir ‘example.com’.: Permission denied
- TortoiseGit-git did not exit cleanly (exit code 1)
- How to `git pull` while ignoring local changes?
- Uninitialize git repository
- How to create a local branch from an existing remote branch?
- Git says “Automatic merge failed”, what does it mean?
- What is the .git folder?
- Updating and committing only a file’s permissions using git version control
- Create empty branch on GitHub
- Git – fatal: Unable to create ‘/path/my_project/.git/index.lock’: File exists
- What is the usual process of saving changes made at the CMS level into source control?
- Collaboratively develop a WordPress site
- Why do the Roots theme CSS files not load (404)?
- WordPress Core files not being ignored by Git
- Painless way to track remote Git repo for WordPress updates
- Full site editor, hard-coded IDs in query blocks, and staging/dev servers