Giter Site home page Giter Site logo

gitskills's Introduction

git 基本知识


1.基本配置

	git config --global user.name "your_name"
	git config --global user.email "your_email"

2.初始化本地仓库

	git init

3.添加文件到暂存区

	git add file_name
	# 或者
	git add -A # 当前目录下的文档全部被加载到缓存区

4.检查状态

	git status

5.本地提交

	git commit -m "commit infomations"
提交信息格式:
	# 提交分支
	# 信息
	# why

6.检查本地修改

	git diff

7.查看提交信息

	git log

8.推送到远程仓库(push)

	git push origin master

9.克隆(clone)

	git clone _url_ #  _url_: 远程仓库地址

10.修改上传仓库地址

	git remote add origin [email protected]:<your_name>/<your_Repo>.git

gitskills's People

Contributors

chenkuan1110 avatar

gitskills's Issues

问题标题

写些关于这个仓库的问题、评论.....

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.