This website requires JavaScript.
Explore
Help
Sign In
terry
/
git-command-list
Watch
1
Star
0
Fork
0
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
3
Commits
2
Branches
0
Tags
master
T
Add File
New File
Upload File
Apply Patch
Code
Clone
HTTPS
Tea CLI
Open with VS Code
Open with VSCodium
Open with Intellij IDEA
Download ZIP
Download TAR.GZ
Download BUNDLE
terryLP
b3b0aba772
更新branch操作
2024-08-29 10:11:45 +08:00
readme.md
更新branch操作
2024-08-29 10:11:45 +08:00
readme.md
readme.md
Git Command Demo
本地初始化及提交本地仓库
git init
git add *.c
git commit -m "初始化项目版本"
git log
推送改动到远程
git remote add origin <远程地址> //仅一次
git push origin master
分支操作
查看分支
git branch
创建分支 git branch test
切换分支 git chekout test
创建并切换分支 git checkout -b test
提交分支 git push origin test
删除分支 git checkout master git branch -d test
Reference in new issue
View Git Blame
Copy Permalink
S
Description
demo for git command
Readme
24
KiB
0
Stars
1
Watchers
0
Forks