Termux是一个Android终端仿真器和Linux环境应用程序,无需root或设置。自动安装了最小的系统,可以使用APT软件包管理器安装其它软件程序。
2020-05-26
git init #初始仓库
git status #显示状态
git add . #添加暂存
git commit -m "***" #提交仓库
git log --oneline #查看提交
git reflog #历史版本
git reset --hard "***" #回退版本
git pull #拉取代码
git push -f #推送代码
------------------------------------------------
git branch [Name] #查看分支
git checkout Name #切换分支
git merge Name #合并分支
------------------------------------------------
git remote add origin git@github.com:User/Repo.git
git push -u origin master #上传GitHub
由于天朝网络原因,导致Git克隆异常缓慢,因此需要我们另辟途径进行加速
git clone https://hub.fastgit.xyz/User/Repo.git
git clone https://gitclone.com/github.com/User/Repo.git
打开
.git/config
配置文件,修改[remote "origin"]
的URL地址😊😊