-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
469aee5
commit 537f6e6
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 characters
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 | ||
``` | ||
|
||
|
||
## 相关文档 | ||
|