Last active
April 10, 2024 13:39
-
-
Save chuckntaylor/9231bbf8ca2e90248b65d65b222ae818 to your computer and use it in GitHub Desktop.
Revisions
-
chuckntaylor revised this gist
Apr 10, 2024 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
chuckntaylor revised this gist
Apr 10, 2024 . 1 changed file with 13 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 ``` -
chuckntaylor created this gist
Apr 10, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@