2021年11月21日星期日

git node

 

删除子模块

https://www.answerlib.com/question/51670/github-folders-have-a-white-arrow-on-them.html

分支

  • 创建分支  git checkout -b name
  • 切换分支  git checkout name
  • 合并分支 git merge name

ubuntu 安装git

sudo apt update
sudo apt install git
git --version

配置git

git config --global user.name "Your Name"
git config --global user.email "youremail@yourdomain.com"
git config --list  

配置文件被存储在~/.gitconfig文件:

配置github

        ssh-keygen -t rsa -C "youremail@example.com" //一路 enter
    在 .ssh目录拷贝 id_rsa.pub 内容到github SSH and GPG keys

恢复版本

    git log
    git reset —hard 版本号



没有评论:

发表评论

login.js