git基础使用
git学习
·
git clone https://github.com/inrese/test.git
cd test and do some changes
git status
获取状态
git add .
or git add text.txt
添加文件
git commit -a -m "update2"
确认单个修改,并备注,可恢复
git log
获取修改记录
git reset -hard commit id
状态恢复
git push origin
# git remote set-url origin https://token@github.com/inrese/test.git
git pull
上传及获取文件
git branch
git checkout -b new_feature
Do some changes.
git add .
git commint -a -m "update3"
git push --set-upstream origin new_feature
git checkout master
git branch
git merge new_feature
合并分支
git branch -D new_feature
删除本地分支
git push
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
已为社区贡献1条内容
所有评论(0)