zoukankan      html  css  js  c++  java
  • 17_8_30 git常用指令详解

    初始化:
    git init
    关联远程仓库:
    git remote add origin https://github.com/githubname/Test1.git    //origin 是自己取的名字
    查看远程仓库
    git remote
    git remote -v
    解除远程仓库链接
    git remote rm videop
    
    步骤:
    1.git add 项目名
    2.git commit -m "对此次提交的描述"
    3.git push self master 提交
    4.git pull self master 拉取
    
    

    参考

    删除
    git rm --cached "文件路径"--->不删除物理文件,仅将该文件从缓存中删除
    git rm --f  "文件路径"--->不仅将该文件从缓存中删除,还会将物理文件删除(不会回收到垃圾桶)
    

    参考

    git clean  -d  -fx ""
    -x means ignored files are also removed as well as files unknown to git.
    -d means remove untracked directories in addition to untracked files.
    -f is required to force it to run.
    

    查看 记录:commit 的记录
    git log 
    查看.git 目录下的其他工程是否被追踪(add)
    git status 
    git status -s
    
  • 相关阅读:
    学姐学长们的测试
    loli的测试——搜索
    搜索-2
    单调队列
    乱搞题 (不知道怎么分类)
    对拍及数据生成
    搜索-1
    矩形重叠
    拼写单词
    java笔记
  • 原文地址:https://www.cnblogs.com/du1991/p/7454928.html
Copyright © 2011-2022 走看看