zoukankan      html  css  js  c++  java
  • git 常用命令

    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin https://github.com/carry/python2-selenium.git
    git push -u origin master
    
    
    git remote add origin https://github.com/carry/python2-selenium.git
    git push -u origin master
    
    
    git status
    
    1、“git status” 命令用于查看当前项目下所有文件的状态
    
    2、“git add” 命令可以对指定文件添加跟踪。如果后面跟空格加点号“.”,则表示对当前目录下的所有文件进行跟踪。
    再次通过 “git status” 命令查看当前Git仓库的信息
    
    3、“git commit” 命令将文件(git add 进行管理的文件)提交到本地仓库。-m 参数对本次的提交加以描述。一般提交的描述必不可少,从而方便追溯每次提交都做了哪些修改
    
    4、“git remote add origin git@github.com:carry/python2-selenium.git”
    如果是第一次提交项目,这一句就非常重要了,它会将本地的项目与远程的仓库之间建立连接,这里选择的是SSH协议方式进行连接
    
    5、“git push -u origin master ” 将本地的项目提交到远程仓库中
    

    github上面查看 

      

     
  • 相关阅读:
    Codeforces 912E
    Codeforces 912D
    洛谷P4980 【模板】Polya定理
    51nod1222最小公倍数计数
    15 Puzzle LightOJ
    loj2734「JOISC 2016 Day 2」女装大佬 || 洛谷P3615 如厕计划
    Jongmah Codeforces
    洛谷P4238【模板】多项式求逆
    洛谷P4721 【模板】分治 FFT
    FFT,NTT
  • 原文地址:https://www.cnblogs.com/lxs1314/p/7465759.html
Copyright © 2011-2022 走看看