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$
    公众号请关注:侠之大者
  • 相关阅读:
    jqueryui 进度条使用
    第一阶段站立会议03
    第一阶段站立会议02
    第一阶段站立会议01
    找到了——电梯会议
    软件需求规格说明书
    团队项目计划会议
    软件开发团队简介
    找水王
    NABCD需求分析
  • 原文地址:https://www.cnblogs.com/kamil/p/5211201.html
Copyright © 2011-2022 走看看