Git global setup
git config --global user.name "wangdong"
git config --global user.email "wangdong@ibeifeng.com"
Create a new repository
git clone ssh://git@git.ibf.cn:10022/wangdong/Kf53ReceivePushInfo.git
cd Kf53ReceivePushInfo
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Existing folder
cd existing_folder
git init
git remote add origin ssh://git@git.ibf.cn:10022/wangdong/Kf53ReceivePushInfo.git
git add .
git commit
git push -u origin master
Existing Git repository
cd existing_repo
git remote add origin ssh://git@git.ibf.cn:10022/wangdong/Lagou_Spider.git
git push -u origin --all
git push -u origin --tags
git相关命令
最新推荐文章于 2025-08-03 09:23:34 发布
本文详细介绍了一系列Git基本操作命令,包括全局配置、新建仓库、克隆现有仓库、初始化本地仓库、添加远程仓库并推送代码等步骤。通过实际案例,读者可以快速掌握如何使用Git进行版本控制。
9305

被折叠的 条评论
为什么被折叠?



