git其他知识介绍
常用忽略文件
https://github.com/seeways/MyIgnore
配置别名
|
|
建议熟悉git命令后使用
……主人翁何在?你的选择是什么?此时此刻就是最好的时间!
https://github.com/seeways/MyIgnore
|
|
建议熟悉git命令后使用
……
|
|
git config
命令的--global
参数,表明这台机器上的所有Git仓库都会使用这个配置,也可以对某个仓库指定不同的用户名和邮箱地址。
Connection reset by 20.205.243.166 port 22 fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
尝试将host文件中添加
192.30.255.112 github.com git
185.31.16.184 github.global.ssl.fastly.net
……git常用的操作语法介绍
git checkout . && git clean -xdf
git branch -D branchName
git checkout -b 本地分支名 远程分支名
……写了一天代码,下班的时候随手关闭sourceTree,然后在关闭之前顺手执行了丢弃操作。(以为是测试项目的代码,无需保留)。下一秒猛地意识到是今天的项目代码。突然紧张起来了。
……