Code Monkey home page Code Monkey logo

muke's Introduction

现在总结一下今天学的两点内容:
初始化一个Git仓库,使用git init命令。
添加文件到Git仓库,分两步:

使用命令git add <file>,注意,可反复多次使用,添加多个文件;
使用命令git commit -m <message>,完成。




小结
要关联一个远程库,使用命令git remote add origin git@server-name:path/repo-name.git;
关联后,使用命令git push -u origin master第一次推送master分支的所有内容;
此后,每次本地提交后,只要有必要,就可以使用命令git push origin master推送最新修改;


从现在起,只要本地作了提交,就可以通过命令:

$ git push origin master


add--commit--push--增加、提交、最后推送到远端
➜  muke git:(master) ✗ git add index.html
➜  muke git:(master) ✗ git commit -m "index.html"
➜  muke git:(master) ✗ git push origin master


开始设置username和email,因为github每次commit都会记录他们
$ git config --global user.name     "name"       //你的GitHub登陆名
$ git config --global user.email    "[email protected]"//你的GitHub注册邮箱 
1
2
1.5 接下来就是把本地仓库传到github上去
git status                         # 查看修改文件
git add -A .                       # 添加要上传的:当前目录所有文件
git commit -m"对上传文件命名"       # 提交上传的文件 
git push                           # (推送)上传 


git add /目录/文件名                # 添加要上传的:指定文件

list-style-type可以设置列表项目符号为:
none无项目符号,disc实心圆,circle空心圆,
square实心方块等但是不可以设置图片为项目符号。

muke's People

Contributors

shaoyan avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.