Skip to content

Commit

Permalink
git default branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-graduan committed Mar 8, 2021
1 parent 606b87c commit 9dda7ee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Git/cheat_sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

`git init`

## Set Global Default Branch Name

`git config --global init.defaultBranch <name>`

eg:

`git config --global init.defaultBranch master`

## You can clone git or add repo url

`git clone <repo_url>`
Expand Down

0 comments on commit 9dda7ee

Please sign in to comment.