Useful Git Commands

Posted on Apr 23, 2025

by Jimmy

Git

Fetch

Markdown
        
            git fetch        
    

Use this command when you need to download information from a repo. Here is the documentation.

Or, if using the VS Code Source Control extension:

Checkout

Markdown
        
            git checkout feature/New-Features        
    

Use this command when you need to work on a different branch. Here is the documentation.

Or, if using the VS Code Source Control extension:

Note

Before working on a new branch created from Bitbucket, you will need to run git fetch first


Back to Snippets