zoukankan      html  css  js  c++  java
  • git 笔记1

    代码

    kamil@ubuntu:~/github/xzdz$ git init
    Initialized empty Git repository in /home/kamil/github/xzdz/.git/
    kamil@ubuntu:~/github/xzdz$ ls -a
    .  ..  a.py  .git
    kamil@ubuntu:~/github/xzdz$ ls .git/
    branches  config  description  HEAD  hooks  info  objects  refs
    kamil@ubuntu:~/github/xzdz$ git clone https://github.com/gleitz/howdoi.git
    Cloning into 'howdoi'...
    remote: Counting objects: 775, done.
    remote: Total 775 (delta 0), reused 0 (delta 0), pack-reused 775
    Receiving objects: 100% (775/775), 120.42 KiB | 67.00 KiB/s, done.
    Resolving deltas: 100% (369/369), done.
    Checking connectivity... done.
    kamil@ubuntu:~/github/xzdz$

    2

    kamil@ubuntu:~/github/cs1$ git add b.py
    fatal: Not a git repository (or any of the parent directories): .git
    kamil@ubuntu:~/github/cs1$
    kamil@ubuntu:~/github/cs1$ git init
    Initialized empty Git repository in /home/kamil/github/cs1/.git/
    kamil@ubuntu:~/github/cs1$ git status
    On branch master
    
    Initial commit
    
    Untracked files:
      (use "git add <file>..." to include in what will be committed)
    
            b.py
    
    nothing added to commit but untracked files present (use "git add" to track)
    kamil@ubuntu:~/github/cs1$ git add b.py
    kamil@ubuntu:~/github/cs1$ git status
    On branch master
    
    Initial commit
    
    Changes to be committed:
      (use "git rm --cached <file>..." to unstage)
    
            new file:   b.py
    
    kamil@ubuntu:~/github/cs1$
    公众号请关注:侠之大者
  • 相关阅读:
    Opencv(1)介绍篇
    植被覆盖度制图
    GIS应用开发AO(2)-空间分析ITopologicalOperate
    GIS应用开发AO(1)_普通几何图形绘制
    初识机器学习-人脸识别
    ArcGIS API for javascript4.3——RouteTask
    javascript学习(1)随机点名应用
    生活感悟之六
    生活感悟之五
    生活感悟之四
  • 原文地址:https://www.cnblogs.com/kamil/p/5211201.html
Copyright © 2011-2022 走看看