zoukankan      html  css  js  c++  java
  • Git2

    git status -sb

    git commit -m'ThirdCommit'

    git push -u origin HEAD:ThirdBranch

    git branch -a

    git branch -r

    git branch -v

    git branch -vv

    git branch -vv
    * ForthBranch 6b28a53 [origin/ForthBranch] ForthCommit
    SecondBranch 963d8fe [origin/SecondBranch] SecondCommit
    ThirdBranch 4863ec7 [origin/ThirdBranch] ThirdCommit
    master acd0015 [origin/FIRSTBRANCH] FirstCommit

    git branch -a
    * FifthBranch
    ForthBranch
    SecondBranch
    ThirdBranch
    master
    remotes/origin/FIRSTBRANCH
    remotes/origin/FifthBranch
    remotes/origin/ForthBranch
    remotes/origin/SecondBranch
    remotes/origin/ThirdBranch

    git branch -r
    origin/FIRSTBRANCH
    origin/FifthBranch
    origin/ForthBranch
    origin/SecondBranch
    origin/ThirdBranch

    git branch -v
    * FifthBranch f5bd63e FifthCommit
    ForthBranch 6b28a53 ForthCommit
    SecondBranch 963d8fe SecondCommit
    ThirdBranch 4863ec7 ThirdCommit
    master acd0015 FirstCommit

    git branch -vv
    * FifthBranch f5bd63e [origin/FifthBranch] FifthCommit
    ForthBranch 6b28a53 [origin/ForthBranch] ForthCommit
    SecondBranch 963d8fe [origin/SecondBranch] SecondCommit
    ThirdBranch 4863ec7 [origin/ThirdBranch] ThirdCommit
    master acd0015 [origin/FIRSTBRANCH] FirstCommit

    git add --a

    git branch -vv
    FifthBranch f5bd63e [origin/FifthBranch] FifthCommit
    ForthBranch 6b28a53 [origin/ForthBranch] ForthCommit
    SecondBranch 963d8fe [origin/SecondBranch] SecondCommit
    * SevenBranch 9749316 [origin/SevenBranch] SevenCommit
    ThirdBranch 4863ec7 [origin/ThirdBranch] ThirdCommit
    master acd0015 [origin/FIRSTBRANCH] FirstCommit

    git log
    commit 9749316e0ac5037ada3f5f1832235b5c9bc26039
    Author: Fred1987 <2864326836@qq.com>
    Date: Tue Feb 21 00:54:44 2017 +0800

    SevenCommit

    commit f5bd63ec48f7b10d423328b74e06b099df6ca165
    Author: Fred1987 <2864326836@qq.com>
    Date: Tue Feb 21 00:45:25 2017 +0800

    FifthCommit

    commit 6b28a53ebf0056953a9310035e0a4cf6a25a0355
    Author: Fred1987 <2864326836@qq.com>
    Date: Tue Feb 21 00:42:21 2017 +0800

    ForthCommit

    commit 4863ec7c824e96f77c47fc50d44b5b9fe310f515
    Author: Fred1987 <2864326836@qq.com>
    Date: Tue Feb 21 00:37:42 2017 +0800

    ThirdCommit
    :...skipping...
    commit 9749316e0ac5037ada3f5f1832235b5c9bc26039
    Author: Fred1987 <2864326836@qq.com>
    Date: Tue Feb 21 00:54:44 2017 +0800

    SevenCommit

    commit f5bd63ec48f7b10d423328b74e06b099df6ca165
    Author: Fred1987 <2864326836@qq.com>
    Date: Tue Feb 21 00:45:25 2017 +0800

    FifthCommit

    commit 6b28a53ebf0056953a9310035e0a4cf6a25a0355
    Author: Fred1987 <2864326836@qq.com>
    Date: Tue Feb 21 00:42:21 2017 +0800

    ForthCommit

    commit 4863ec7c824e96f77c47fc50d44b5b9fe310f515
    Author: Fred1987 <2864326836@qq.com>
    Date: Tue Feb 21 00:37:42 2017 +0800

    ThirdCommit

    commit 963d8feeaf2e05c928cc180978bd0fc69de6e96f
    Author: Fred1987 <2864326836@qq.com>
    Date: Tue Feb 21 00:31:08 2017 +0800

    SecondCommit

    commit acd001532e89cb482e81ac341acb12bc907d7d04
    Author: Fred1987 <2864326836@qq.com>
    Date: Tue Feb 21 00:27:08 2017 +0800

    FirstCommit

    git log -2
    commit 9749316e0ac5037ada3f5f1832235b5c9bc26039
    Author: Fred1987 <2864326836@qq.com>
    Date: Tue Feb 21 00:54:44 2017 +0800

    SevenCommit

    commit f5bd63ec48f7b10d423328b74e06b099df6ca165
    Author: Fred1987 <2864326836@qq.com>
    Date: Tue Feb 21 00:45:25 2017 +0800

    FifthCommit

    git diff
    diff --git a/ConsoleApp88/Program.cs b/ConsoleApp88/Program.cs
    index 71d7646..63a058a 100644
    --- a/ConsoleApp88/Program.cs
    +++ b/ConsoleApp88/Program.cs
    @@ -86,13 +86,13 @@ new Product {IdProduct = 6, Price = 60 }};
    int start =1;
    int end = 10;

    - var expr =
    - customers
    - .Select((x, index) => new { index, x.Name, x.Country });
    + var orders = customers
    + .Where(x => x.Country == Countries.Italy)
    + .Select(x => x.Orders);

    - foreach(var e in expr)
    + foreach(var item in orders)
    {
    - Console.WriteLine(e.index + "," + e.Name + "," + e.Country);
    + Console.WriteLine(item.FirstOrDefault().IdOrder+","+ item.FirstOrDefault().IdProduct+","+ item.FirstOrDefault().Month+","+ item.FirstOrDefault().Quantity+","+ item.FirstOrDefault().Shipped);
    }

    Console.ReadLine();
    diff --git a/ConsoleApp88/bin/Debug/ConsoleApp88.exe b/ConsoleApp88/bin/Debug/ConsoleApp88.exe
    index 92cc13e..86dffad 100644
    Binary files a/ConsoleApp88/bin/Debug/ConsoleApp88.exe and b/ConsoleApp88/bin/Debug/ConsoleApp88.exe differ
    diff --git a/ConsoleApp88/bin/Debug/ConsoleApp88.pdb b/ConsoleApp88/bin/Debug/ConsoleApp88.pdb
    index 1b120f2..998f114 100644
    Binary files a/ConsoleApp88/bin/Debug/ConsoleApp88.pdb and b/ConsoleApp88/bin/Debug/ConsoleApp88.pdb differ
    diff --git a/ConsoleApp88/obj/Debug/ConsoleApp88.exe b/ConsoleApp88/obj/Debug/ConsoleApp88.exe
    index 92cc13e..86dffad 100644
    Binary files a/ConsoleApp88/obj/Debug/ConsoleApp88.exe and b/ConsoleApp88/obj/Debug/ConsoleApp88.exe differ
    diff --git a/ConsoleApp88/obj/Debug/ConsoleApp88.pdb b/ConsoleApp88/obj/Debug/ConsoleApp88.pdb
    index 1b120f2..998f114 100644
    Binary files a/ConsoleApp88/obj/Debug/ConsoleApp88.pdb and b/ConsoleApp88/obj/Debug/ConsoleApp88.pdb differ

    git branch -vv
    FifthBranch f5bd63e [origin/FifthBranch] FifthCommit
    ForthBranch 6b28a53 [origin/ForthBranch] ForthCommit
    SecondBranch 963d8fe [origin/SecondBranch] SecondCommit
    SevenBranch 9749316 [origin/SevenBranch] SevenCommit
    * SixBranch cc85123 [origin/SixBranch] SixCommit
    ThirdBranch 4863ec7 [origin/ThirdBranch] ThirdCommit
    master acd0015 [origin/FIRSTBRANCH] FirstCommit

    git log -2
    commit cc85123d52d7f3d29c3deee70f186c2bcafaf30a
    Author: Fred1987 <2864326836@qq.com>
    Date: Tue Feb 21 01:02:52 2017 +0800

    SixCommit

    commit 9749316e0ac5037ada3f5f1832235b5c9bc26039
    Author: Fred1987 <2864326836@qq.com>
    Date: Tue Feb 21 00:54:44 2017 +0800

    SevenCommit

  • 相关阅读:
    【刷题】洛谷 P1501 [国家集训队]Tree II
    【刷题】BZOJ 2816 [ZJOI2012]网络
    【刷题】BZOJ 2049 [Sdoi2008]Cave 洞穴勘测
    【刷题】BZOJ 2002 [Hnoi2010]Bounce 弹飞绵羊
    【刷题】洛谷 P3690 【模板】Link Cut Tree (动态树)
    【刷题】BZOJ 2190 [SDOI2008]仪仗队
    【刷题】BZOJ 2005 [Noi2010]能量采集
    【刷题】BZOJ 3262 [HNOI2008]GT考试
    (74)Wangdao.com第十三天_Object 对象_属性描述对象
    (73)Wangdao.com第十二天_JavaScript consol 对象与控制台
  • 原文地址:https://www.cnblogs.com/Fred1987/p/6422257.html
Copyright © 2011-2022 走看看