GitHub creates the new Branch method

Code ->main, type new branch name, create branch:

[postgres@hgcndn git_test]$ git pull
 * [new branch]      dev        -> origin/dev
Already up-to-date.
[postgres@hgcndn git_test]$ git branch -a
* main
  remotes/origin/HEAD -> origin/main

Delete All Files

[postgres@hgcndn git_test]$ git rm * -r rm '' [postgres@hgcndn git_test]$ git add . [postgres@hgcndn git_test]$  git commit -m "clean all files" [dev 3f73979] clean all files 1 file changed, 6 deletions(-) delete mode 100644 [postgres@hgcndn git_test]$ git push origin dev Counting objects: 3, done. Compressing objects: 100% (1/1), done. Writing objects: 100% (2/2), 236 bytes | 0 bytes/s, done. Total 2 (delta 0), reused 0 (delta 0) To [email protected]:xiangbin1997/git_test.git 5c9dcce.. 3f73979 dev -> dev