Skip to content

Instantly share code, notes, and snippets.

@chuckntaylor
Last active April 10, 2024 13:39
Show Gist options
  • Save chuckntaylor/9231bbf8ca2e90248b65d65b222ae818 to your computer and use it in GitHub Desktop.
Save chuckntaylor/9231bbf8ca2e90248b65d65b222ae818 to your computer and use it in GitHub Desktop.

Revisions

  1. chuckntaylor revised this gist Apr 10, 2024. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions gitCommands.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,12 @@

    A collection of git commands that I commonly use, but can never remember.

    ## Pushing a new branch to a remote repository

    ```bash
    git push -u origin branchName
    ```

    ## How to Delete a Git Branch Both Locally and Remotely

    ```bash
  2. chuckntaylor revised this gist Apr 10, 2024. 1 changed file with 13 additions and 1 deletion.
    14 changes: 13 additions & 1 deletion gitCommands.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,13 @@
    ‎‎​
    # Common Git Branch Commands

    A collection of git commands that I commonly use, but can never remember.

    ## How to Delete a Git Branch Both Locally and Remotely

    ```bash
    # Delete the local branch
    git branch -d branchName

    # Delete the remote branch
    git push origin --delete branchName
    ```
  3. chuckntaylor created this gist Apr 10, 2024.
    1 change: 1 addition & 0 deletions gitCommands.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    ‎‎​