随笔分类 -  Git、GitHub

摘要:1 配置 Git 忽略文件 1)创建忽略规则文件 git.ignore # Compiled class file *.class # Log file *.log # BlueJ files *.ctxt # Mobile Tools for Java (J2ME) .mtj.tmp/ # Pac 阅读全文
posted @ 2022-10-25 22:56 93丶Fss 阅读(19) 评论(0) 推荐(0) 编辑
摘要:git remote -v 查看当前所有远程地址别名 git remote add 别名 远程地址 起别名 git push 别名 分支 推送本地分支上的内容到远程仓库 git clone 远程地址 将远程仓库的内容克隆到本地 git pull 远程库地址别名 远程分支名 将远程仓库对于分支最新内容 阅读全文
posted @ 2022-10-25 22:39 93丶Fss 阅读(14) 评论(0) 推荐(0) 编辑
摘要:特殊符号:<<<<<<< HEAD 当前分支的代码 合并过来的代码 >>>>>>> git commit 命令时不能带文件名 阅读全文
posted @ 2022-10-25 22:28 93丶Fss 阅读(18) 评论(0) 推荐(0) 编辑
摘要:创建分支 git branch 分支名 查看分支 git branch -v 切换分支 git checkout 分支名 把指定的分支合并到当前分支上 git merge 分支名 合并分支 git merge 分支名 阅读全文
posted @ 2022-10-25 22:27 93丶Fss 阅读(6) 评论(0) 推荐(0) 编辑
摘要:一,设置用户签 git config --global user.name 用户名 git config --global user.email 邮箱 二、 初始化本地库 git init 三、查看本地库状态 git status git ls-files(查看本地库内容) 四、添加暂存区 git 阅读全文
posted @ 2022-10-25 22:24 93丶Fss 阅读(13) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示