Skip to content

Commit

Permalink
tiny
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-coder committed Jun 5, 2022
1 parent 469aee5 commit 537f6e6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions git/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
# GIT

## 基本语法
### init git
```
0. remote repository was created before !!!
…or create a new repository on the command line
echo "# work-dir" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:beer-coder/work-dir.git
git push -u origin main
…or push an existing repository from the command line
git remote add origin [email protected]:beer-coder/work-dir.git
git branch -M main
git push -u origin main
```


## 相关文档
Expand Down

0 comments on commit 537f6e6

Please sign in to comment.