Skip to content

Commit

Permalink
💚 git: change master to main
Browse files Browse the repository at this point in the history
  • Loading branch information
devmount authored May 31, 2021
1 parent 9b581e5 commit f1937c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sheets/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Just remove the `--global` flag for local setup.
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
git push -u origin main

### Existing folder

Expand All @@ -25,7 +25,7 @@ Just remove the `--global` flag for local setup.
git remote add origin https://user@github.com/user/repo.git
git add .
git commit
git push -u origin master
git push -u origin main

### Existing Git repository

Expand All @@ -39,7 +39,7 @@ Just remove the `--global` flag for local setup.
```bash
git remote rm origin
git remote add origin <new-location>
git branch --set-upstream-to=origin/master master
git branch --set-upstream-to=origin/main main
```

### Stop tracking file
Expand Down

0 comments on commit f1937c4

Please sign in to comment.