
git命令
树洞菇凉
这个作者很懒,什么都没留下…
展开
-
Git 使用命令提交代码步骤
第一步:查看当前状态 (红色的字体显示的就是你修改的文件)git status第二步: 修改内容都要提交直接使用 git add . 反之只需要提交部分代码就使用git add xxx(修改文件链接的红色文字)git add . 或git add xxx第三步:推送修改到本地git库中git commit -m "修改了xxxx" 第四步:更新代码同步(master是主分支)git rebase origin/master第五步:git pu...原创 2020-12-24 11:50:25 · 1069 阅读 · 0 评论 -
git常用命令
拉取代码:git pull推本地代码上去:1、git status 2、git add [filename1] [filename2] 3、git commit [filename1] -m “提交信息说明” 4、git push提交代码:git add . (提交)git commit -m "设为首页,收藏的实现" (备注提交内容)git fetch (拉取代码)g...原创 2019-09-02 15:46:17 · 124 阅读 · 0 评论