git remote -v 查看对应的远程仓库

git fetch origin master 将某个远程主机的更新,全部取回本地

git merge origin master 合并分支

git add * 添加到索引库中(缓存区)

git commit -m 'pp' 推送修改到本地库中

git push origin master 将本地仓库修改推送到服务器上的仓库中

git rm * --cache

git status -s 以精简的方式显示文件状态(红色便是修改过为添加到缓存区的,绿色已经添加到缓存区的)

git rm --cached file_path 当我们需要删除缓存区区或分支上的文件, 但本地又需要使用, 只是不希望这个文件被版本控制,

 

相关文章:

  • 2021-09-18
  • 2021-06-01
  • 2021-06-11
  • 2021-10-19
  • 2022-02-23
  • 2022-02-10
猜你喜欢
  • 2021-09-20
  • 2021-06-04
  • 2021-12-19
  • 2021-09-23
  • 2021-08-21
  • 2021-11-08
相关资源
相似解决方案